I'm tryin to use the file() function to check if a file in the foldere "\My documents\immagini\" exists, but the function always returns .f. even if the file is there....
Any help ??
file() function
-
- Posts: 2
- Joined: Fri Aug 08, 2008 3:32 pm
- Location: italy
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Andrea,
In Windows Mobile there is no the concept of "drives", so we have to use the current directory. Please try this example:
test.prg
In Windows Mobile there is no the concept of "drives", so we have to use the current directory. Please try this example:
test.prg
Code: Select all
#include "fwce.ch"
function Main()
MsgInfo( File( CurDir() + "\test.exe" ) )
return nil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Andrea,
You just have to remove the first slash bar:
test.prg
You just have to remove the first slash bar:
test.prg
Code: Select all
#include "fwce.ch"
function Main()
MsgInfo( File( "My Documents\myfile.txt" ) )
return nil
-
- Posts: 2
- Joined: Fri Aug 08, 2008 3:32 pm
- Location: italy
- Contact: