Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
File()
Miscellaneous
Thread ID:
00862385
Message ID:
00862385
Views:
50
LOCAL cEmployeesFolder , xFile

cEmployeesFolder = Addbs(Addbs(oApp.cEmployeeImagesFolder) + "_" + Transform(employees.Id))
If Not Directory(cEmployeesFolder)
Md (cEmployeesFolder)
Endif

xFile = cEmployeesFolder + "300x350.jpg"

*-- For a file that does not exist this next test will fail
*-- That is to say that the block is not executed
If Not File(xFile)
*-- This next line fails to execute when the var xFile does not exist
xFile = Addbs(oApp.cEmployeeImagesFolder) + "camera.jpg"
Endif

BUT the watch window reports
File(xFile) is .F.
NOT File(xFile) is .T.


Why would this happen ?
Greg Foote
Software At Work, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform