Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fields in a listbox
Message
De
24/01/2004 14:01:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/01/2004 13:22:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00870195
Message ID:
00870300
Vues:
14
>Hello Dragan.
>
>You took my say :). And for the GETWORDNUM( This.RowSource, 2, '.' ) (with a period, not the comma) we may also use JUSTEXT(This.RowSource) - no need for Alltrim.
>
>Hmmmm. What if you have the RowSOurce specified as "MyTable.MyField, Field2" ? This code in the list box's init():
>
>
>messagebox( JUSTEXT(This.RowSource) )
>
>
>Gives you "MyField, Field2". Probably not exactly what you have in mind unless, of course, you intend to use GETWORDNUM() to extract the fields from THIS string < s >.

That's why I said it works when you have something delimited by dots, not commas. For any other delimiter except the period, GetWordNum(), of course.

>You are, however, correct about the fact that the ALLTRIM is superfluous < s >.

Well, I tested first :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform