Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deploying
Message
From
15/09/2004 08:59:17
 
 
To
14/09/2004 17:37:46
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00941917
Message ID:
00942342
Views:
17
cpdf is the name of the form I am running on my system. You need to replace cpdf (in all locations) with the name of the form you want to run on your system. You do not have the cpdf form of course, but have the forms you created and are running from your command buttons.
Also, I use the keyword 'NAME' when instantiating forms so I have a variable that I can use to always reference the form. Using the keyword LINKED links the form to the variable. If the variable ocpdf goes out of scope, then the form is released. The MSFT help states that if you do not include the keyword 'LINKED' then the form can still be active even though there is no longer an object variable associated with it. So in the line:

DO FORM cpdf NAME ocpdf LINKED

opens the form 'cpdf' and creates an object variable named 'ocpdf' that always references the cpdf form. From that point on I can reference the form as so:

ocpdf.visible = .F.
ocpdf.visible = .T.
ocpdf.refresh()
etc.

If your form is 'myform' then you would change that line to:

DO FORM myform NAME omyform LINKED

then you could always reference the form 'myform' by referencing the variable omyform.

>Tracy, Thanks for you response I see where I was going down the wrong path. Help me better understand what your doing in you code, as it reads through "DO FORM cpdf NAME ocpdf LINKED" i receive an error, unable to find "cpdf" in a directory that's not my current directory. If I change the path in the above to my path where the form is it kicks off, except when I try and build into an exe, that's when the error occurs again.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform