Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run SDT From Project Hook Class...
Message
From
02/03/2000 11:43:47
 
 
To
01/03/2000 23:39:26
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00340407
Message ID:
00340615
Views:
18
Hi Bob.

>If you run this quickly you will see my problem. In frmSDT::Init the loadpictures are trying to load from a specific directory. I do have sdt and sdt\source in the path.
>
>I think the problem is that GetAppDirectory() gets the directory of the project hook class rather than SDT.

The culprint is this line in the Init method of SDT.SCX:
lcDirectory = .oUtility.GetAppDirectory()
It assumes that the top level program was SDT.APP or SDT.PRG, which isn't the case here. The fix is simple: change this line to:
lcDirectory = .oUtility.GetAppDirectory(sys(16))
(This is one of those cases where I'm glad I added more functionality in the library routine, GetAppDirectory in this case, than I needed at the moment <g>).

BTW, cool use of SDT!!

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform