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 |
|
n*******e 发帖数: 62 | 2 Abstract
1 – “Rose is a rose is a rose is a rose”, C# is case sensitive, that
sucks.
2 – The Switch clause
3 – Event-Handling code
4 –Stupid symbols
5 – Autocorrection in Visual Basic actually works
6 – Lack of supported functions, such as:IsNumeric,PMT, etc. but they don’
t exist in C#.
7 – That wretched semi-colon.Why do I have to end every line in C# with a
semi-colon?
8 – Arguments and variables.The order of words in a C# variable declaration
is wrong.the C# method of having to prefix argume... 阅读全帖 |
|
b****u 发帖数: 1027 | 3 use javascript, txtName.focus(); in onload event of the html body |
|
l**u 发帖数: 67 | 4 I am using vb6. and i found out that change
Newtxt = Oldtxt.Replace(" ' ", " '' ") into
Newtxt = Replace(txtName.text, " ' ", " '' ")
And it works.
I am not very aware of VB and VB.net. Why if i use vb6, it is wrong?
Thanks
single
still |
|
G***G 发帖数: 16778 | 5 假设 从文本框txtName获得一个值name
string name; |
|