Welcome! Log In Create A New Profile

Advanced

Mixing HF Classic and HFCS

Posted by Thomas 
Thomas
Mixing HF Classic and HFCS
July 18, 2008 10:05PM
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
Stefan Bentvelsen
Re: Mixing HF Classic and HFCS
July 21, 2008 09:23AM
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 sHlp<>EOT
// 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
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: