Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WM22] HdeclareExternal (2 replies)

$
0
0
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)

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>