Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Why don't VBS Working??!!

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Why don't VBS Working??!!
  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 >>
 Why don't VBS Working??!! - 4/13/2005 8:01:34 PM   
  xiangll115

 

Posts: 1
Score: 0
Joined: 4/13/2005
From:
Status: offline
Hi everyone ! My code as following:
..............
<Script language="VBScript">
Form1.SelectName.value=Form1.hiddenFieldName.value
Form1.SelectArea.value=Form1.hiddenFieldName.value
Form1.DTPicker1.value=hiddenFieldDate.value
</Script>
The DTPicker1 is an activex time control,The Problem is that The "Form1.DTPicker1.value=hiddenFieldDate.value" haven't Worked,but When I Add a Msgbox"***" before the "Form1.DTPicker1.value=hiddenFieldDate.value",it Work fine!
I really hope you can help me!Thanks for the assist!!!
 
 
Post #: 1
 
 Re: Why don't VBS Working??!! - 4/14/2005 7:23:32 AM   
  jbuttery

 

Posts: 24
Score: 0
Joined: 11/3/2004
From:
Status: offline
How does it fail?

Dim WshShell, BtnCode
Set WshShell = WScript.CreateObject("WScript.Shell")

Form1.SelectName.value=Form1.hiddenFieldName.value
BtnCode = WshShell.Popup("Current Name is : " & (Form1.SelectName.value), 5, " Name:", 0 & 64)

Form1.SelectArea.value=Form1.hiddenFieldName.value
BtnCode = WshShell.Popup("Current Area is : " & (Form1.SelectArea.value), 5, " Area:", 0 & 64)
Form1.DTPicker1.value=hiddenFieldDate.value
'does this need to be Form1.hiddenFieldDate.value?
BtnCode = WshShell.Popup("Current DTPicker1 is : " & (Form1.DTPicker1.value), 5, " DTPicker1:", 0 & 64)

(in reply to xiangll115)
 
 
Post #: 2
 
 
 
  

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 >> Why don't VBS Working??!! 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