|
-
Sep 21st, 2000, 03:49 PM
#1
Thread Starter
Addicted Member
I do this:
TXT_total.text=TXT_1.text + TXT_2.txt
TXT_1 = 1
TXT_2 = 2
The command do that : 12
but I want that : 3
I dont want to put a VARIABLE if possible ..
Did someone know how ??
like:
dim TXT_total.text as integer
-
Sep 21st, 2000, 03:57 PM
#2
Frenzied Member
try:
TXT_total.text=CINT(TXT_1.text) + Cint(TXT_2.txt)
for your example
-
Sep 21st, 2000, 04:07 PM
#3
Hyperactive Member
Yay one i can do!! hahaha
use the val function
TXT_total.text=Val(TXT_1.text) + Val(TXT_2.text)
Easy as.
BW
-
Sep 21st, 2000, 05:05 PM
#4
If I'm not correct, Val converts it into a double, unless you specificly declare it as Integer.
Code:
Dim A As Integer
A = Val(Text1)
Print TypeName(A)
[Edited by Megatron on 09-21-2000 at 06:09 PM]
-
Sep 21st, 2000, 05:11 PM
#5
Hyperactive Member
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
|