Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sys(3) does NOT return the legal file name!
Message
From
26/07/2004 08:19:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00927743
Message ID:
00927869
Views:
18
>Hi everybody,
>
>I'm trying to run one form from my old application. This form is based on the class BaseForm and it is failing on the method BaseForm.Load on the line:
>
>
>thisform.ltClass=gctemppath+SYS(3)
>
>    CREATE TABLE (thisform.ltclass) FREE (CLASS C(40))
>
>(Code written by my colleague). SYS(3) returns a string with all numbers.

To avoid the possibility that gcTempPath is not ending with a backslash, I prefer
thisform.ltClass=ForcePath(SYS(3),gctemppath)
I've seen sys(3) return a sys(2015)-like string under DOS3.3, then saw it return digits only under Novell 3.x, then saw it return a string with charactrers A-P only (16 of them... hex-like), then a combination of digits and characters. Over the years its format was changing a lot.

Just use CodeReferences and weed out the sys(3), replacing it with sys(2015) everywhere. I haven't used sys(3) for years.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform