Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fields in a listbox
Message
From
24/01/2004 14:01:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/01/2004 13:22:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00870195
Message ID:
00870300
Views:
13
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform