PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Use SQL statements in WinDev Mobile 21
Use SQL statements in WinDev Mobile 21
Débuté par hectorbadenes, 19 mai 2016 17:53 - 2 réponses
Posté le 19 mai 2016 - 17:53
I'm developing an Android app with a SQLite database in WM21 but I can't find the way to execute SQL statements like "ALTER TABLE".

Query editor don't suport this kind of statements, function HExecuteSQLQuery() declares this query to the HFSQL engine and fails, and SQLExec() doesn't work because SQLConnect() isn't avaliable in Android.

Exists any way to do this with WM21?
Membre enregistré
102 messages
Popularité : +2 (2 votes)
Posté le 31 mai 2016 - 12:32
Hector,

I tried to find a solution. But I couldn't. Seems like you can't change a SQLite data file structure. Not with an SQL statement nor with HDescribeItem. Maybe you can use some pure Java code somewhere to do this.

--
http://arnoldconsult.de
WinDev 20 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL
Posté le 31 mai 2016 - 19:49
Hi

actually, I know for a fact that you can do alter tables on SQL lite in
android with windev mobile, as this solution has been discussed on the
french forums.

As I'm using only HF, I don't have any direct knowledge of the how, but
if you REALLY want to use SQLlite instead of HF, it's possible.

Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

Plus d'information sur http://fabriceharari.com