Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 7.0 - things I'd like to see.
Message
De
15/08/1999 16:00:48
 
 
À
15/08/1999 05:35:59
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00251678
Message ID:
00253885
Vues:
25
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform