Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


syntax for validating form using doument object

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,828
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> syntax for validating form using doument object
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 syntax for validating form using doument object - 4/11/2003 11:42:15 AM   
  kanwar_lokesh

 

Posts: 1
Score: 0
Joined: 4/11/2003
From: Australia
Status: offline
HI! i need help here. what will be the syntax to access the document elements dynamically using a variable value?
i have marked in the code below where i am getting an error.


Dim TheForm, validation, i, totalLabs

totalLabs = 5
Function frmLabs_onSubmit()
Set TheForm = Document.frmLabs
For i = 1 to totalLabs

---err on this line--->If IsNumeric (TheForm.lab &i.Value) Then
validation = True
Else
Msgbox "Please enter a numerical lab number."
validation = False
TheForm.lab1.Focus
Exit Function
End If
NEXT
End Function


kanwar
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> syntax for validating form using doument object Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts