thanks.
Is not that i are searching.
I need that in log, view:
insert into Tabla(Cod_Proveedor, Name) Values (1,"pepe")
or if the cod_proveedor is STRING in database (char) view : ... values ("1","pepe")
I think that this is not posible easy, and for all database system (Sql server, mysql, etc) I use now, sql server (remote hosting) for my current proyects.
I can do something to replace '?' by items in array, but is not perefect.
Thanks again. May be, Erel with your source code in bx4 can do this in a future (easy way).
Something like this:
public Sub TestSql
Dim Sq
Sq = "Insert Into tabla(Cod_Proveedor, name) values (?, ?)"
DecodeSql(Sq,Array As String("1","PEPE"))
End Sub
private Sub DecodeSql(TheSql As String, Ar As List) As String
Dim Posicion As Long = 0
Dim Posicion2 As Int
Dim NewSql As String
Dim N As Long
For n = 0 To Ar.Size -1
Posicion2= TheSql.IndexOf2( "?",Posicion)
NewSql = NewSql & TheSql.SubString2(Posicion, Posicion2) & """" & Ar.Get(n) & """"
Posicion = Posicion2+1
Next
NewSql= NewSql & TheSql.SubString(Posicion)
Log(NewSql)
Return NewSql
End Sub
Log out:
Insert Into tabla(Cod_Proveedor, name) values ("1", "PEPE")