Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about global vars/procedures
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00356628
Message ID:
00356649
Views:
17
Joe,

Put the #define in an .h file and use the form Include menu item to include the file in each form.

You can put your procedure in a file with the same name as the function name and simply include that .prg in the project.

>>I have an app (which I'm compiling to an exe) that consist of...
>>
>>Form1 - parent
>>Form2 - child of Form1
>>Form3 - child of Form1
>>
>>I'm starting the exe with a .prg that has the following code:
>>
>>* code start
>>set ...
>>do form Form1
>>read events
>>* code end
>>
>>Now I need a global constant such as "#define x 10" and a global procedure so that
>>any of the three forms can use the constant or call the procedure.
>>
>>Thanks for any tips!
>>Joe
>
>So my question was... (sorry about that) Where do I put the global constant and procedure?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform