Hi all

Apparently I am assigning a string to an integer.

All fields are string


Code:
C:\AntarSas\DF19\MF40Pyme\Programs\MF40PYME.exe
General error. 22018 (245)--[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Conversion failed when converting the varchar value 'YERISELA GAMBOA                                                                           ' to data type int.  Table = UsuEmpre (62)

Error: 12289
Origen Error = MSSQLDRV.Find
Code:
  1  Usuario          ASC     10     1  1   
  2  codigo           ASC      5    11  1   
  3  Empresa          ASC     90    16      
  4  Asigno           ASC     10   106      
  5  FSystema         ASC     20   116      
  6  Cliente          ASC      3   136  1
Code:
                             Clear UsuEmpre
                             Move sUsuNuevo to UsuEmpre.Usuario  
                             Move "00"      to UsuEmpre.codigo    
                             Move gscliente to UsuEmpre.Cliente
                             Find ge UsuEmpre by 1   //error
                             While (Found  and (sUsuNuevo = UsuEmpre.Usuario))
                                           Increment iConteo
                                           Move UsuEmpre.codigo  to YaAsignado[iConteo]
                                           Find gt UsuEmpre by 1
                             Loop
Suggestions?


Edgar