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 16:00:48
 
 
To
15/08/1999 05:35:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00251678
Message ID:
00253885
Views:
24
>
>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 :)


Hmm...ok...it was just a thought. I'll pass on the original request to Microsoft.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform