>>>Instead of the other solution that works in 9 you can try
>>>
>>>
>>>lcNumbers = Alltrim(chrtran("A-B123Q4E", "ABCDEFGHIJKLMNOPQRSTUVWXYZ-", Space(26)))
>>>? At(' ', lcNumbers) - 1
>>>? Left(lcNumbers, At(' ', lcNumbers) - 1)
>>>? substr(lcNumbers, At(' ', lcNumbers) + 1)
>>>
>>
>>While you're at, how can I check, if I'm connected to Terminal Server or not (do I have an access to T drive or not)?
>>
>>Thanks.
>
>
>
>BITTEST(VAL(OS(10)), 4)
>
>
http://msdn2.microsoft.com/en-us/library/eaxhb0az(VS.80).aspxBits 16 and 256 return the same info for OS(10). Why then we have two of them? OS(10) returns 256 for me, which means I have it installed. However, DIRECTORY("T:\Images") returns .f., so I'm not connected to the server. Is it OK to just use directory even for non-existing drive?
If it's not broken, fix it until it is.
My Blog