由买买提看人间百态

topics

全部话题 - 话题: txtname
(共0页)
l**u
发帖数: 67
1
来自主题: Database版 - Please help on replacing character in VB
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
来自主题: BuildingWeb版 - how to set default activated input field?
use javascript, txtName.focus(); in onload event of the html body
l**u
发帖数: 67
4
来自主题: Database版 - Re: Please help on replacing character i
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
来自主题: Programming版 - c#中如何动态创建变量名
假设 从文本框txtName获得一个值name
string name;
(共0页)