tcgoh Active Member Licensed User Longtime User Jan 26, 2008 #1 Hi all, Does anyone know is it possible to have a multiple StrInsert in a single code? Example: a=strinsert(textbox1.Text,8,";") + strinsert(textbox1.text,32,";") Thanks
Hi all, Does anyone know is it possible to have a multiple StrInsert in a single code? Example: a=strinsert(textbox1.Text,8,";") + strinsert(textbox1.text,32,";") Thanks
klaus Expert Licensed User Longtime User Jan 26, 2008 #2 Hello tcgoh Insread of a=strinsert(textbox1.Text,8,";") + strinsert(textbox1.text,32,";") this work in VB but not in Basic4PPC you must use the concatenation character. a=strinsert(textbox1.Text,8,";")&strinsert(textbox1.text,32,";") Best regards Klaus Switzerland
Hello tcgoh Insread of a=strinsert(textbox1.Text,8,";") + strinsert(textbox1.text,32,";") this work in VB but not in Basic4PPC you must use the concatenation character. a=strinsert(textbox1.Text,8,";")&strinsert(textbox1.text,32,";") Best regards Klaus Switzerland
tcgoh Active Member Licensed User Longtime User Jan 26, 2008 #3 Hi Klaus Thanks for the reply. But your code does work also. Error: Variable: Textbox was not assigned any value. Thanks
Hi Klaus Thanks for the reply. But your code does work also. Error: Variable: Textbox was not assigned any value. Thanks
specci48 Well-Known Member Licensed User Longtime User Jan 26, 2008 #4 I think you have used copy and paste ... but you haven't removed the space in the second line of the code klaus provided. There has to be no space between "textbox" and "1" ... specci48
I think you have used copy and paste ... but you haven't removed the space in the second line of the code klaus provided. There has to be no space between "textbox" and "1" ... specci48
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2008 #5 There is an extra space between textbox and 1. Try: B4X: a=strinsert(textbox1.Text,8,";") & strinsert(textbox1.text,32,";") I'm not sure that this is what you want to achieve. If you want to add these two characters, you need: B4X: a = StrInsert(StrInsert(TextBox1.Text,8,";"),33,";")
There is an extra space between textbox and 1. Try: B4X: a=strinsert(textbox1.Text,8,";") & strinsert(textbox1.text,32,";") I'm not sure that this is what you want to achieve. If you want to add these two characters, you need: B4X: a = StrInsert(StrInsert(TextBox1.Text,8,";"),33,";")
klaus Expert Licensed User Longtime User Jan 26, 2008 #6 Of cours the extra space must not be there, was a wrong typing, I was concentrated in replacing the '+' sign by '&' . Sorry for the mistake. Klaus
Of cours the extra space must not be there, was a wrong typing, I was concentrated in replacing the '+' sign by '&' . Sorry for the mistake. Klaus
tcgoh Active Member Licensed User Longtime User Jan 26, 2008 #7 Hi Erel, Oh Ya, there is space there. Thanks. But Erel is right on the spot on what I wanted. ie, add 2 char on the same line. Thanks again to all, the second code works fine.
Hi Erel, Oh Ya, there is space there. Thanks. But Erel is right on the spot on what I wanted. ie, add 2 char on the same line. Thanks again to all, the second code works fine.