Thursday, October 21, 2010

How do you handle parentheses in VB if they are part of the text?

I am extremely new to VB, and am working on a database for access. I want to write an if /then /else statement that examines text in a combo box. This is pretty straightforward in most of the cbo boxes I have done this with, but in this particular combo box the text contains parentheses. For example, if the text says ';AB(CDEF)'; how do I tell VB that these are part of the text??



Thanks for any help!How do you handle parentheses in VB if they are part of the text?
The ascii value for ( is 40 and ) is 41.



TextBox1.Text = ';The party is going to be this Wednesday, '; %26amp; Chr(40) %26amp; ';Sep 9'; %26amp; Chr(41) %26amp; ';, and everybody is looking forward to it.';



Good luck!How do you handle parentheses in VB if they are part of the text?
Maybe this will help.





wscript.echo ';';';hello world';';';
concatenate the ascII value for the ';(';

No comments:

Post a Comment