Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 21/08/2007 @ 09:20 par aldweb
visiteur |
Hello Roy,
You have the CHAR$(A$,N) function to get one character from one string which is similar to MID$(A$,N,1) that you may also use. Then, for the receiving string, use the LEFT$() and RIGHT$() functions to get all positions back except for the one to insert.
Here is a quick example:
A$="1st string" B$="2nd String" C$=LEFT$(B$,4)+CHAR$(A$,5)+RIGHT$(B$,5) D$=LEFT$(B$,4)+MID$(A$,5,1)+RIGHT$(B$,5) E$=MID$(B$,1,4)+MID$(A$,5,1)+MID$(B$,6,5) PRINT C$ ' should print: 2nd string PRINT D$ ' same result PRINT E$ ' still the same
Cheers, aldweb
|