l**u 发帖数: 67 | 1 guys, someone please help in my code. It drives me crazy!!! wuwuwu....
The question is as following:
In a form, I have a text box named: txtName which contains customer name.
If the customer name is for example: Cindy's.
Then the txtName = "Cindy's"
Now, in my code, I need to check this txtName field. if contains the single
prime ('), I need to replace it as two single primes('')
My code is:
Dim Oldtxt as String
Dim Newtxt as String
Dim ocn as new connect
....
Oldtxt = txtName.text
Newtxt = Old | aw 发帖数: 127 | 2 i assume u use vb .net, right? the code looks fine with me and i can get it
right on my box. check other lines in between which you may ignore.
if u r using vb6, then it's wrong.
【在 l**u 的大作中提到】 : guys, someone please help in my code. It drives me crazy!!! wuwuwu.... : The question is as following: : In a form, I have a text box named: txtName which contains customer name. : If the customer name is for example: Cindy's. : Then the txtName = "Cindy's" : Now, in my code, I need to check this txtName field. if contains the single : prime ('), I need to replace it as two single primes('') : My code is: : Dim Oldtxt as String : Dim Newtxt as String
|
|