PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → convert var to string
convert var to string
Débuté par Jorge Montesinos, 03 oct. 2005 13:00 - Aucune réponse
Posté le 03 octobre 2005 - 13:00
Hi, I have a database with some fields, one of this fields is directory, that contents the path, i would like to print the files which are in this folders, my problem is thta I need to take the content of the field "directory", and if this directory have files send to the printer, but I can´t convert the data of this field;my code is this:

res is string
New is int

FOR ALL Impreson Directory
resul = Impres.Directory
New = fOpen(res, foRead)
IF New <> -1 THEN
res = fRead(New ,1000)
//ipreview(100)
iPrintWord(res)
iEndPrinting()
END

END

In the sentence --> New = fOpen(res, foRead)
if i changed res by the path complete, the program is OK
New = fOpen("C:\jorge\program\My_Project\enviado.txt", foRead)