[Gambas-user] Exist says OK, but the File.Load fails

Charlie Reinl Karl.Reinl at ...9...
Wed Nov 18 19:41:18 CET 2009


Salut, 

this is my code (I added the line numbers)
Exist says OK
but the File.Load fails with : File or directory does not exist

args[0] = Reports/US-presidents-3.xml is a relative path
If I use the Fullpath it works.

AND: this only happens if the code is used in a component !
     In the project-code it works.

807  IF Exist(args[0]) THEN
808   
809    sString = File.Load(args[0])

This I get if I run it :

args[0] = Reports/US-presidents-3.xml

CLogic.FromXML.809: #45: File or directory does not exist


-- 
Amicalment
Charlie

[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.24-25-generic
DistributionVendor=ubuntu
DistributionRelease="Ubuntu 8.04.3 LTS"

[System]
CPUArchitecture=i686
TotalRam=506932 kB

[Gambas]
Gambas1=gbx-1.0.17
Gambas1Path=/usr/bin/gbx
Gambas2=2.17.0                         rev 2424
Gambas2Path=/usr/local/bin/gbx2
Gambas3=2.99.0
Gambas3Path=/usr/local/bin/gbx3






More information about the User mailing list