Welcome! Log In Create A New Profile

Advanced

Connection (type of variable) WinDEV Mobile (v27)

Posted by SteveSitas 
Connection (type of variable) WinDEV Mobile (v27)
January 30, 2023 08:24PM
Hi,
Is the documentation here "wrong" or am I missing something ?
Is the documentation abou OTHER external databases except HFSQL C/S?

[help.windev.com]

The documentation says that Connection (Type of variable) it is not available in Android.
But it seems to work OK and it is even used by PCSoft in a LST 109 example ...


Any Ideas?

Regards
Steven Sitas



Edited 1 time(s). Last edit at 01/30/2023 09:04PM by SteveSitas.
Re: Connection (type of variable) WinDEV Mobile (v27)
January 31, 2023 08:04PM
Hi,
after some testing and in contrast of what the documentation says, the connection (type of variable) WORKS with Mobile (v27) and HFSQL C/S and Classic.
But if you do not follow a strict sequence of assigns, it will fail - the sequence seems to be important only for HFSQL C/S, not for Classic

Here is what worked for me:

a360_DataBaseConnection is Connection
a360_DataBaseConnection.User = a360_CSUser
a360_DataBaseConnection..Password = a360_CSPassword
a360_DataBaseConnection.Server = a360_CSServer
a360_DataBaseConnection.Database = a360_CSDatabase
a360_DataBaseConnection.Provider = hAccessHFClientServer
a360_DataBaseConnection.Access = hOReadWrite

IF HChangeConnection("*",a360_DataBaseConnection)=False THEN
Info("Wrong connection setup - RDBMs")
RESULT(False)
END

// Open the main connection
IF HOpenConnection(a360_DataBaseConnection)=False THEN
Info("Wrong connection setup - RDBMs")
Info(ErrorInfo(errFullDetails))
Info(HError)
RESULT(False)
END

Regards

Steven Sitas



Edited 1 time(s). Last edit at 01/31/2023 08:05PM by SteveSitas.
Re: Connection (type of variable) WinDEV Mobile (v27)
February 02, 2023 09:56AM
Hi,

PCSoft "updated" the documenation (in the WEB help)

Regrards
Steven Sitas
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: