Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of variable in .PRG?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Scope of variable in .PRG?
Miscellaneous
Thread ID:
00453277
Message ID:
00453277
Views:
73
If I declare a PUBLIC variable in my .PRG, for example -
PUBLIC gcMyVariable
gcMyVariable = ""

and then I call another application using RUN MyApp.exe later in that same .PRG,
can I reference the public variable gcMyVariable in a form that's part of MyApp.exe or do I have to pass the variable value using a parameter or something else? What's the best way to handle passing or referencing a variable value among or between .EXEs that are mostly running forms?

TIA
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform