Use the IDE to create the sub for you!?
NO!You mean
Sub MyTask_Error( ?? )
Whenever the status changes. connected, not connectedWhen this SUB is executed ?
you must not... It is a infomative event.And.. what kind of code you must insert there ?
It makes no sense to send a query if the status is not connected
once you get the status connected it is connected...You do not have any way of asking if the connection was made or not
Yes,once you get the status connected it is connected...
If you get the status not connected then it is not.
Store a global variable and you´ll always know
the best place for the lib and for the connection is a service. Only one status is needed to get a appglobal global variableBut you must include this _Status in every Activity, and this is not the best practice.
the best place for the lib and for the connection is a service. Only one status is needed to get a appglobal global variable
this is because of what?but the STATUS SUB must be in every Activity
** Service (starter) Create **
** Service (starter) Start **
Raising.. mysql_status
Connected to Database
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Activity_Resume()
Starter:MySQL_Status(true,false,0)
SqlException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'Descriptions' in 'field list'
lib:Raising.. mysql_onsqlerror()
Starter:MySQL_onSqlError((MyMap) {ErrorCode=1054, ColumnCount=0, RecordCount=0, TaskID=test, Exception=com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'Descriptions' in 'field list'})
Starter:MySQL_QueryResult(Columns 0, Records 0,nullms,test
Starter:MySQL_QueryResult(Columns 1, Records 8,160ms,test2
(MyMap) {My_Name=Soft drinks, coffees, teas, beers, and ales}
(MyMap) {My_Name=Sweet and savory sauces, relishes, spreads, and seasonings}
(MyMap) {My_Name=Desserts, candies, and sweet breads}
(MyMap) {My_Name=Cheeses}
(MyMap) {My_Name=Breads, crackers, pasta, and cereal}
(MyMap) {My_Name=Prepared meats}
(MyMap) {My_Name=Dried fruit and bean curd}
(MyMap) {My_Name=Seaweed and fish}
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Activity_Resume()
You mean that from a Service you can call an Activity Sub ?
CallSubDelayed(Main,"subname")
CallSubDelayed2(Main,"subname",parameter1)
CallSubDelayed3(Main,"subname",parameter1,parameter2)
It's not the best practice.get the result in the service and then call a sub in your activity (giving the result as parameter) from the qryresult sub. In the called sub you then can do the UI changes.
It's not the best practice.
Please look how MariaDB Keirs Lib works... I mean that is the best architecture..
Of course, your lib is fastest and I choice yours, but you must reconsider some changes in the structure
I´m not sure. I have´nt tried. I have no azure database.The other day I saw microsoft azure has also mysql, you can connect from this library?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?