PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Mixing HF Classic and HFCS
Mixing HF Classic and HFCS
Débuté par Thomas, 20 juil. 2008 11:28 - 1 réponse
Posté le 20 juillet 2008 - 11:28
Hello Windev Fans,
how can mixing HFCS with HF Classic in the ftemppath() on a client?
HchangeDir works only on the server with a relativ path. I cannot specify a path outside the database.
Regards
Thomas
Posté le 21 juillet 2008 - 12:23
Hi Thomas,
you have to create a connection for classic HyperFile. In the following example the files
LOTEMP and IHTEMP use the classic HF-connection, the other files use the CSH-connection (MyConnection). Hope this helps.
IF NOT HOpenConnection("HFConn","","","","",hAccessHF7) THEN
oAlgProc:ErrorM(ErrorInfo())
END
sBest=Upper(HListFile("","",hLstAll))
sHlp=ExtractString(sBest,firstRank,CR)
WHILE sHlpEOT
// HChangeConnection("*","MyConnection") // Alles in één keer is niet mogelijk, o.a. LOTEMP moet lokaal in temp-directory
IF sHlp IN ("LOTEMP","IHTEMP") THEN
HChangeConnection(sHlp,"HFConn")
ELSE
HChangeConnection(sHlp,"MyConnection")
END
sHlp=ExtractString(sBest,nextRank,CR)
END