2011-06-28 56 views

回答

0

我發現解決方案如此之快。你必須修改'兒童'財產,就像這樣:

treeviewitem my_tvi 

if Not IsValid(ids_childrens) then 
    ids_childrens = CREATE datastore 
    ids_childrens.DataObject = 'my_dw' 
    ids_childrens.SetTransObject(SQLCA) 
end if 
num_children = ids_childrens.Retrieve(long(some_pk)) 
if num_children <= 0 then 
    my_tvi.children = false 
else 
    my_tvi.children = true   
end if