Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


creating if statements from database

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> creating if statements from database
  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 >>
 creating if statements from database - 3/23/2005 5:11:03 PM   
  aaders

 

Posts: 1
Score: 0
Joined: 3/23/2005
From:
Status: offline
How can I create an if statement (condition portion only) dynamically. I want to pull the condition from a database table and use it as my if statement condition.

stored in database: "intX > 10"

in vbscript:
If (pulled from database from above) then
do something...
end if

Thanks!!
 
 
Post #: 1
 
 Re: creating if statements from database - 3/23/2005 5:18:37 PM   
  token

 

Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
I do not beleive you can do that. I have tried something like that in the past without success. It didn't seem to me that vbs was able to treat the literal value of the variable as part of the IF statements. It just treated as a variable. If you can get it to work, I'll be interested to know as well =)

(in reply to aaders)
 
 
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 >> creating if statements from database 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