Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange work of CD command.
Message
From
04/06/1998 12:14:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Strange work of CD command.
Miscellaneous
Thread ID:
00104801
Message ID:
00104801
Views:
66
These 2 procedures I modified from Tastrade project. See comment near CD command.

FUNCTION LTMsgBox
PARAMETERS cMessageText, nDialogBoxType, cTitleBarText
LOCAL nRetVal, oappMsgBox

= SetPath()

nRetVal = 0

oappMsgBox = CREATEOBJECT( [zLTMsgBox] )
nRetVal = oappMsgBox.DoFormRetVal(cMessageText, nDialogBoxType, cTitleBarText)

RETURN nRetVal

FUNCTION SetPath()
LOCAL lcSys16, lcProgram, lnTimeOut

clear

lcProgram = SYS(16)
lcProgram = SUBSTR( lcProgram, AT( [:], lcProgram ) - 1 )
lcProgram = LEFT( lcProgram, RAT( [\], lcProgram ) - 1 )
SET DEFAULT TO ( lcProgram )

CD ..

* Sometimes this command don't change directory. Then I insert * command ? after CD command this one change directory properly. * Some miliseconds for change directory or any other problem?

SET PATH TO BITMAPS, CLASSES, PROGRAMS
SET CLASSLIB TO zFoxTools
Reply
Map
View

Click here to load this message in the networking platform