Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can SEEK() return .T. but have the wrong record?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00903416
Message ID:
00903472
Vues:
17
Gerald,

>>>PADL(ALLTRIM(STR(ParentID)),10,"X")+PADL(ALLTRIM(STR(ChildOrder)),10,"X")

>But, the string used in the seek will be easier to construct and can be used directly as a treeview key (and this is the case here I think).

6 function calls is easier than 2? *s*

It seems like since he has the treeview up and running he's already using a form of node.key that is working. I use "_" transform( Table.PKey ) myself and use int( substr( hode.key, 2 ) ) to get back to the table index. I've seen others put the _ at the end of the string and then a int( val( node.key ) ) works to get the PK back.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform