Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7.0 - things I'd like to see.
Message
From
15/08/1999 05:35:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/08/1999 16:09:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00251678
Message ID:
00253824
Views:
22
>>Too logical not to be true... A-T as an organization became real jerks when they started to lose their edge... FWIW: I really hate the SYS() functions because there is no way to know what any given one does without checking HELP or some other reference first. At least an 'english-like'/'human-readable' name would be a good start and hopefully help quickly determine a better approach/command to accomplish a task...
>
>I just thought of this...but we don't need MS to fix this. We can do it now using the preprocessor.
>
>#DEFINE MyFunction() SYS(0)

No go, Craig. You can't #define function names, AFAIK. I've tried your example, and tried

#define myfunc(a,b) abs(a+b)
?myfunc(1,2)

But it displays several very imaginative error messages, depending on the way you try to fool it - and still doesn't go. Clipper had something like this, and though it would make for more unreadable code and a more complicated compiler, I'd still like to have it.

You can still

#define ConfigFile sys(2019)
#define PushText Fwrite(fHandle,

and then do

modi comm ConfigFile
fHandle=fcreate("whatever.txt")
PushText "Hello, world")

...and greatly reduce the typing efforts and readability :)

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