>>select documentos
>lctextBox=PADL(.Txc_TipoDoc.value,fsize('c_docum'),'0')
>
>lcTextBox always return 1,2 or 3, only what i type.
Depending on the size of the textbox, the value could be '1 '. In which case, you will get 1 with 9 spaces after it (it truncates the last 6). Try the following:
lctextBox=PADL(alltrim(.Txc_TipoDoc.value),fsize('c_docum'),'0')
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao