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:
00357064
Views:
17
So there is no way to have a bunch of procedures in a file that you can
call globally? I have to have a separate file for each procedure I want to call?


>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform