Hi all,
Anyone succeeded in using HDeclareExternal on an Android Device ?
This is the code I use. Runs OK in the simulator, but on the device I get just a message "<myProgramName> is stopped" without any further information. First, I do get the "Connection OK" message, so making the connection is OK.
Thx,
Bart
ds is Data Source
r is boolean
Conn is Connection
Conn..User = "myUserName"
Conn..Password = "myPassword"
Conn..Server = "192.168.0.128"
Conn..Database = "myDB"
Conn..Provider = hAccessHFClientServer
Conn..Access = hOReadWrite
IF NOT HOpenConnection(Conn) THEN
Error(HErrorInfo())
RETURN
ELSE
Info("Connection OK")
END
r= HDeclareExternal("./Artikel.FIC","ds","conn")
IF NOT r THEN
Error(HErrorInfo())
HCloseConnection(Conn)
RETURN
END
HReadFirst(ds)
Info(ds.oms)
HCancelDeclaration(ds)
HCloseConnection(Conn)
Anyone succeeded in using HDeclareExternal on an Android Device ?
This is the code I use. Runs OK in the simulator, but on the device I get just a message "<myProgramName> is stopped" without any further information. First, I do get the "Connection OK" message, so making the connection is OK.
Thx,
Bart
ds is Data Source
r is boolean
Conn is Connection
Conn..User = "myUserName"
Conn..Password = "myPassword"
Conn..Server = "192.168.0.128"
Conn..Database = "myDB"
Conn..Provider = hAccessHFClientServer
Conn..Access = hOReadWrite
IF NOT HOpenConnection(Conn) THEN
Error(HErrorInfo())
RETURN
ELSE
Info("Connection OK")
END
r= HDeclareExternal("./Artikel.FIC","ds","conn")
IF NOT r THEN
Error(HErrorInfo())
HCloseConnection(Conn)
RETURN
END
HReadFirst(ds)
Info(ds.oms)
HCancelDeclaration(ds)
HCloseConnection(Conn)