Thanks. Looking the string, it has several numbers, but the number i need is next to the word "código" (code in English), it can be done with regular expressions? Or I have to add some lines to the code below.
I will think the solution, if it works i will post it.
Solved
Thanks to all
I will think the solution, if it works i will post it.
Solved
Code:
l_String=Datatable("o_DescRechazo", dtLocalSheet)
l_num=""
For j=1 to len(l_String)
y=mid(l_String,j,6)
If ( y="Código") Then
For i=j to len(l_String)
y=mid(l_String,i,1)
If ( isnumeric(y)=True) Then
l_num= l_num & y
End If
Next
j=len(l_string)
End If
Next
msgbox l_num
Thanks to all