Hello
I need to know in TSQL query i can find in string only a part of string.
For example :
my string : 24302331 - IVA a 21% OBS
i need to keep only 24302331 , in VFP the following code return this value beginning from the left until find "-" for keeping the value of "24302331"
VFP code : alltrim(SUBSTR(alltrim(Curs1.oldesc), 1, AT("-",alltrim(curs1.oldesc))-1))
I need that to update one field on my table , the value of "24302331" is my account.
Many thanks
Luis Santos