PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → other analysis data get
other analysis data get
Iniciado por guest, 24,abr. 2015 19:37 - 1 respuesta
Publicado el 24,abril 2015 - 19:37
i am try to this code but not get data to other analysis in data fic file

IF HDeclare("CaMaster","E:\SESFS\SESFS\\SESFS.wdd","",Contact)= True THEN
HDeclareExternal("E:\\SESFS\\SESFS\Exe\CaMaster.FIC",Contact)
HOpen(Contact)
Info(HNbRec(Contact))

ELSE
ErrorInfo(errCode)
END
Publicado el 24,abril 2015 - 23:41
Hello Vijay

As usual with your requests you fail to inform us of the version and product and you also fail to give specific information so that we can help you better.

Which code line fails ?

When dealing with external files fFileExist() is always the best starting point to find out if the files are where you think they are.

If you have intentions of releasing this application to the public then hard coding directory names is a bad idea as most times you have no control over the location of the app and the data files so have a look at the "f" commands such as fcurrentdir() or hold the drive/folder names in an ini or data file.


According to the help on HdeclareExternal() the alias file name should be in quotes as "Contact"

Regards
Al