Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How define a variable

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How define a variable
  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 >>
 How define a variable - 6/6/2001 7:21:37 AM   
  mid

 

Posts: 16
Score: 0
Joined: 6/4/2001
From: USA
Status: offline
How can I define a string variable?
 
 
Post #: 1
 
 Re: How define a variable - 6/6/2001 7:22:28 AM   
  cruiser

 

Posts: 25
Score: 0
Joined: 6/4/2001
From: USA
Status: offline
dim taco
taco="bell"

(in reply to mid)
 
 
Post #: 2
 
 Re: How define a variable - 11/10/2001 4:10:25 AM   
  DrummerMatt

 

Posts: 1
Score: 0
Joined: 11/10/2001
From: United Kingdom
Status: offline
quote:

dim taco
taco="bell"

The above works to an extent - but you can't use functions such as indexOf and substring, because taco is not initialised as a correct object of string...how is this achieved?





(in reply to mid)
 
 
Post #: 3
 
 Re: How define a variable - 11/12/2001 12:03:21 PM   
  EL_Hefe

 

Posts: 2
Score: 0
Joined: 11/12/2001
From: Norway
Status: offline
dim variable as string

variable="taco"

or

variable=txtbox.text

if you wanna use string values that the user writes in a txt box

(in reply to mid)
 
 
Post #: 4
 
 
 
  

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 >> How define a variable 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