Android Question Use Problem List

SinanTasgin

Member
Licensed User
Longtime User
The datas which I get them from the sheet, I want to save these datas to a list where I would read them.

upload_2015-8-14_4-43-13.png

After I did like this I need to set the values according as column names.

I am using this method with c# According to the following below there.

upload_2015-8-14_4-45-38.png


How can I do this in B4A ?
 

SinanTasgin

Member
Licensed User
Longtime User

Thank you Erel ...

Try
Dim Sql As String = "SELECT PARAMETER, VALUE FROM SETTINGS WHERE PARAMETER LIKE 'WS_%'"
Dim CursorForUrl As Cursor
CursorForUrl = DbConnection.Sql1.ExecQuery(Sql)
If CursorForUrl.RowCount > 0 Then

For i =0 To CursorForUrl.RowCount -1

CursorForUrl.Position = i
If CursorForUrl.GetString("PARAMETER") = "WS_USER_NAME" Then
wsUserName =(CursorForUrl.GetString("VALUE"))
End If
If CursorForUrl.GetString("PARAMETER") = "WS_PASSWORD" Then
wsPassWord =(CursorForUrl.GetString("VALUE"))
End If
If CursorForUrl.GetString("PARAMETER") = "WS_LANGUAGE" Then
wsLanguage =(CursorForUrl.GetString("VALUE"))
End If

Next

End If
Catch
Loggercs.ErrorMessage("LoadServiceParameters Hatası :" , "Utulity.cs")
Loggercs.write_db("LoadServiceParameters Hata" ,Loggercs.Warn , "Utulity.cs")
End Try
 
Upvote 0
Top