Good afternoon Erel, for months I have this problem,
in the past I tried to ask for your help,
but for language problem I ended up giving up,
From what I imagine you could end my doubt with 3 or 4 lines, Because the data I want is there and visible, I just do not know the command to extract the data!
I've even done a routine to decode the mounted string but it makes the process slow!
Give me what it takes so you can help me?
I used a photo so I can see how simple it is!
When I get the result of a SELECT through http everything works but if I use MYSQL it does not!
Please help me with this if you understood the Google translation.
I need to get the contents of the field by the name of the field, and not go looking in a string for its position
I used this routine to work around the problem but this I know is not the correct solution
c1= G.CHOOSE(1,S,",") 'CRM
Public Sub CHOOSE(I As Int, S As String,SP As String) As String
Dim J As Int
Dim PA As Int
Dim K As Int
Dim F As Int
Dim P As Int
Dim M As Int
Dim V As String
If I=1 Then
J=InStr(S,SP)
If J=0 Then J=Len(S)
V=sf.Trim(sf.Mid(S,2,J-2))
Return V
Else
F=InStr(S,"]")
J=InStr(S,SP)
K=1
For K=2 To I
PA=J
J=InStrI(J+1,S,SP)
If J=0 Then J=F-1
If J=PA Then J=F-1
Next
P=PA + 2
M= J - P +1
V=sf.Trim(sf.Mid(S,P,M))
Return V
End If
End Sub