|
-
Sep 11th, 2004, 12:17 AM
#1
Thread Starter
Lively Member
help
Hi:
im building a web based .NET application. this is the situation. i have the following text boxs:
1. Equipment#From 2. #ofEquipments 3. Equipment#To
what i'd like to do is that a user enters 1.( something like T-8900), the he enters 2.(e.g.5), then the application should get 3.(which should be T-8905), you add the #ofEquipments to the Equipment#From to get Equipment#To. How should the code be written?
thanks for your help.
-
Sep 12th, 2004, 02:11 AM
#2
Is the format of the text being entered always fixed?
In other words, will it always be T-#### ?
-
Sep 12th, 2004, 10:21 PM
#3
Thread Starter
Lively Member
Yes . it will be fixed as T-####.
Thanks for your help.
-
Sep 13th, 2004, 02:19 AM
#4
VB Code:
TextBox3.Text = "T-" & (CInt(TextBox1.Text.Substring(2)) + CInt(TextBox2.Text)).ToString
This?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|