Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search a string
Message
From
11/10/1999 12:19:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/10/1999 05:58:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00274219
Message ID:
00274971
Views:
39
>Hi George.
>
>>> Naturally, JUSTSTEM() returns the table alias too. <<
>
>< LOL > I sorta fingured that one out on my own < g >. My ability to recognize the obvious is phenomenal.
>
>>> Another use them is parsing a key string in a treeview. Usually, these keys are separated with backslashes like directories. To see an example of this, try either JUSTFNAME(SYS(2003)) or JUSTPATH(SYS(2003)). <<
>
>Well, in my book, anything that simplifies parsing (which, at the best of times, is a real PITA) is a very cool tool.

One of the tricks is to chop a string into pieces, like this:
for i=1 to words(LongString, '\')
   chop=wordnum(LongString, i, '\')
   thisform.DoSomethingWithThe(chop)
endfor
Of course, you may use any other character to be a separator, so words() and wordnum() are the best parsing tools I've found so far.

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