Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save and exit a modify form by code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01430265
Message ID:
01430338
Views:
33
>>I am working on a builder that needs to run though all 225 forms in a folder. I can load the form, run the builder and save the form. What I can't seem to do is exit the form. I have tried a number of methods but non seem to work. Here is the code I am currently using.
>>
>>
 oForm.Show()
>> oShell = CREATEOBJECT("Wscript.Shell")
>> oShell.SendKeys("%{F}{C}{Y}")
>>
>>I have also tried using keyboard chr(24).
>>
>>Anyone got any suggestions?
>
>Check Re: Searching through all application directory... Thread #430305 Message #431569

Naomi,
I can't thank you enough. I did have a problem getting it to work though. I thought the
release window 'form'
meant to put the form name in 'form' so I used mFormName. I did finally realize that I was supposed to use the line exactly as is. Now I can proceed with processing 225 forms.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform