Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include Header Files Problem
Message
De
08/06/2001 09:38:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/06/2001 05:21:58
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00516780
Message ID:
00516862
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all,
>
>I tried to define some class in a header file and use them in another program, however, I've some problem..
>
>FormDefine.h
>
>define class oForm as form
>  autocenter=.T.
>  caption="Testing"
>
>  procedure queryunload
>    clear event
>  endproc
>enddefine
>
Cetin told you the right way to do this, and the reason why the above was the wrong way is in the way VFP uses .h files - it takes only #define and other # lines from it, and ignores any other lines there. It's only for precompiler directives; you can't have code there. And you don't need to have it there; with Set Procedure ... Additive, and class libraries, you have it all.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform