Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object
Message
From
12/12/2000 14:40:40
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Object
Miscellaneous
Thread ID:
00452433
Message ID:
00452439
Views:
19
>Hi Everyone:
> oAccess = CreateObject("Access.Application")
> oAccess.Visible = .T.
> This codes does work but the access only stays on for a second and it closes.
> Is there I should be doing more
>MA

Your oAccess variable is going out of scope - usually happens when the method or procedure is done and the variable is Local or Private.
How are you running this code? Is it in a procedure you call from the command window, or a method on a class or form?
If it's in a procedure called from the command window, declare oAccess as a public variable, then it will stay up.
If it's in a class or form method, instead of a variable, add a property to the class or form called oAccess and instantiate it with this.oAccess = CreateObject("Access.Application")
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform