>I have preset char for the text such as cText = '0000000000'
>
>if I want to replace cText with 1 to the position 4 eg. '0001000000' and the second number come in is the 9, so my cText with become '0001000010', any one can help to code this.
>
>
>Sorry for english, Thanks
Carmen,
cText = '0000000000'
cText = stuff(cText, 4, 1, '1')
cText = stuff(cText, 9, 1, '1')
?cText
or more complex
cText = '0000000000'
cText = stuff(stuff(cText, 4, 1, '1'), 9, 1, '1')
?cText
Gregory