victoryupa
28th May 2007, 18:10
Buenos Dias,

Por favor necesito realizar lo siguiente: Un campo de la tabla el dato que recupero es el siguiente "PC000032" necesito tomar a partir del tercer caracter. como lo hago?.

Y luego de obtener este valor necesito convertirlo a numerico como lo hago..?.

Gracias por la Ayuda.

Insisto que joda lo del Baan......!

dorleta
29th May 2007, 13:37
mivar = "PC000032"
valor = val( mivar(3; 7))

victoryupa
30th May 2007, 16:26
Hola,

Muchas gracias por la ayuda.

Atte.
Vic

en@frrom
30th May 2007, 16:39
Heya, sorry my Spanish is a little poor....

I think just val(mivar) should also do the trick (just retrieve the numeric positions..) Also if you are not sure of the digits positions, you can check with the function isdigit()..

Regards,
Eli Nager

george7a
30th May 2007, 17:25
By the way it is more efficient to use the lval() function (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_lval_val) for long variables instead of val (val is for double)

- George