|
-
Jul 10th, 2001, 03:42 AM
#1
Thread Starter
Addicted Member
new to vbscript
Hi All,
I am new to using vbscript and I am having a problem making this small script work. Can anybody see what I am doing wrong.
Many Thanks
Colin
<SCRIPT LANGUAGE= "VBScript">
<! - - Option Explicit '<- Problem appears to be here.
Sub cmdcalculate_OnClick()
Dim value1
Dim value2
Dim value3
Dim total
value1 = txtvalue1.value
value2 = txtvalue2.value
value3 = txtvalue3.value
total = value1 + value2 + value3
End Sub
- - >
</SCRIPT>
-
Jul 10th, 2001, 04:07 AM
#2
Retired VBF Adm1nistrator
Try :
Code:
<SCRIPT LANGUAGE= "VBScript">
<!--
Option Explicit
Sub cmdcalculate_OnClick()
Dim value1
Dim value2
Dim value3
Dim total
value1 = txtvalue1.value
value2 = txtvalue2.value
value3 = txtvalue3.value
total = value1 + value2 + value3
End Sub
-->
</SCRIPT>
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 10th, 2001, 04:16 AM
#3
Leave Option Explcit out, I dont suggest using it for Client Side scripting.
-
Jul 10th, 2001, 04:17 AM
#4
Retired VBF Adm1nistrator
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 10th, 2001, 04:21 AM
#5
Format?
How can I format any date to dd/mm/yy format in ASP? it seams to have the Format() Function missing
-
Jul 10th, 2001, 04:27 AM
#6
I clicked new threaD?
-
Jul 10th, 2001, 04:28 AM
#7
Thread Starter
Addicted Member
Many thanks, that did the trick
Colin
-
Jul 10th, 2001, 04:31 AM
#8
Retired VBF Adm1nistrator
Originally posted by chenko
I clicked new threaD?
Yeah I was wondering what was going on
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 10th, 2001, 04:40 AM
#9
Originally posted by colin
Many thanks, that did the trick
Colin
Mine?
Jamie !!!
Ive had that happen to me a few times now
-
Jul 10th, 2001, 04:54 AM
#10
Thread Starter
Addicted Member
-
Jul 10th, 2001, 12:08 PM
#11
Frenzied Member
Chenko- use formatdatetime
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
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
|