>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.