- Jun 6, 2020
- 11,559
- 4,422
dear all,
sorry bother, I am in a hole and no ideas to go out, please some light. I am consulting a database in MYSQL in order to know if the codbar is in the database or not.
I need to know how capture "something" when the codbar isnt in the DB.
I am using:
' connection to MYSQL
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Main.mysql.InitializeAsync("mysql", Main.driver, Main.jdbcUrl, Main.Username, Main.Password)
Wait For MySQL_Ready (Success As Boolean)
If Success Then
Dim senderfile As Object
senderfile = Main.mysql.ExecQueryAsync("mysql", $"SELECT codbar,descripcion FROM maestro_formatos WHERE codbar= ? "$, Array As String(Main.codbarorigen) )
Wait For (senderfile) mysql_QueryComplete(exito As Boolean, Crsr As JdbcResultSet)
========================================================================================================
HOW CAN I CAPTURE WHEN CRSR is null ???? When the CODBAR is not in the database ...
sorry bother, I am in a hole and no ideas to go out, please some light. I am consulting a database in MYSQL in order to know if the codbar is in the database or not.
I need to know how capture "something" when the codbar isnt in the DB.
I am using:
' connection to MYSQL
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Main.mysql.InitializeAsync("mysql", Main.driver, Main.jdbcUrl, Main.Username, Main.Password)
Wait For MySQL_Ready (Success As Boolean)
If Success Then
Dim senderfile As Object
senderfile = Main.mysql.ExecQueryAsync("mysql", $"SELECT codbar,descripcion FROM maestro_formatos WHERE codbar= ? "$, Array As String(Main.codbarorigen) )
Wait For (senderfile) mysql_QueryComplete(exito As Boolean, Crsr As JdbcResultSet)
========================================================================================================
HOW CAN I CAPTURE WHEN CRSR is null ???? When the CODBAR is not in the database ...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید