>I have set automatic value for a textbox like "RA-'.
>
>At the end of this text, the user should be able to add a no., like RA-01..
>
>In ADD button click event, I set the value of text to RA and did a setfocus on the textbox.
>
>How should I do this to put the cursor at the end of the text RA.. rather than put the cursor before the text.. ?
>
>If the text is RA-01.. and so forth.. how can I automatically set the value of the text box to RA-02.. when user clicks the ADD button?
>
>Any help? TIA.
lnOldValue=val(substr(yourbox.value,4))
Yourbox.value='RA-' + Transform(lnOldValue+1,'@L 99')
Yourbox.SelStart=4