Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include Header Files Problem
Message
From
08/06/2001 09:38:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/06/2001 05:21:58
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00516780
Message ID:
00516862
Views:
10
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform