Welcome! Log In Create A New Profile

Advanced

Hversion equivalent with external database?

Posted by Mitchell 
Mitchell
Hversion equivalent with external database?
June 17, 2008 01:32PM
Dear Windev Coders,
can somebody advise me what is the same command "Hversion" to be used for External Database, like oracle,db2, sql.
Hversion works only in HF files... can someone advise me how to used it on external database? like oracle.. i tried the code below : "Versionfile.VSTITEMUNITORADB = HVersion(ST_ITEM_UNIT)" is always equal to ZERO .

HOpen(ST_ITEM_UNIT)
HOpen(XST_ITEM_UNIT)
x1 is string
x1 = "ST_ITEM_UNIT"
HOpen(Versionfile)
HReadFirst(Versionfile)
WHILE NOT HOut(Versionfile)
IF NoSpace(Versionfile.FILENAME) = x1 THEN
Versionfile.VSTITEMUNITORADB = HVersion(ST_ITEM_UNIT)
Versionfile.VSTITEMUNITHFDB = HVersion(XST_ITEM_UNIT)
HAdd(Versionfile)
RETURN
// Hmodify(Versionfile)
END
HReadNext(Versionfile)
END



ST_ITEM_UNIT file is imported using oracle native access
XST_ITEM_UNIT file is impored to HF database and works fine using the Hversion command.

help please.
Leo Voet
Re: Hversion equivalent with external database?
June 18, 2008 06:45PM
Aha, does this mean you finaly succeeded to connect to oracle ?
What was the problem and what solved it ?

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: