Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path Issue
Message
From
28/01/2003 15:08:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Path Issue
Miscellaneous
Thread ID:
00746395
Message ID:
00746395
Views:
62
Hi,

In the start.prg of my program I have the following code.

DO FORM CURDIR()+ "Forms\Main.SCX"
SET CLASSLIB TO CURDIR() + "Libs\MainClass" ADDITIVE

oToolbar = CREATEOBJECT("Toolbar1")
oToolbar.Show
oToolbar.Dock(0)

READ Events

Question 1. Is there a way that I can remove the CURDIR() from the code and prevent the program from crashing? Do I need to setup the path name somewhere to prevent this from happening?

Question 2. In the main form (Main.Scx), why can't I control the oToolbar in the init() event? VFP is telling it does not exist, Why? All I want to do is disable two buttons initially.

Thanks in Advance.
Next
Reply
Map
View

Click here to load this message in the networking platform