Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How do you change a string to a variable name?


Message #1 by "phill" <philluk@y...> on Thu, 14 Nov 2002 11:10:41
myvarA="a"
myvarB="b"
myvarC="wibble"


?(myvarC)? = myvarA & myvarB


response.write(wibble)

%>

like in PHP when


$myvar = "bye"
$$myvar = "value"

so $$myvar actualy becomes bye
Message #2 by "Joe Ingle" <joe@k...> on Thu, 14 Nov 2002 11:16:07 -0000
Dim myvarA	'As String
Dim myvarB	'As String
Dim wibble	'As String

myvarA =3D "a"
myvarB =3D "b"
wibble =3D myvarA & myvarB


Response.Write(""&wibble&"")

-----Original Message-----
From: phill [mailto:philluk@y...]
Sent: Thursday, November 14, 2002 11:11 AM
To: ASP Web HowTo
Subject: [asp_web_howto] How do you change a string to a variable name?


myvarA=3D"a"
myvarB=3D"b"
myvarC=3D"wibble"


?(myvarC)? =3D myvarA & myvarB


response.write(wibble)

%>

like in PHP when


$myvar =3D "bye"
$$myvar =3D "value"

so $$myvar actualy becomes bye
Message #3 by =?iso-8859-1?q?Phillip=20Booth?= <philluk@y...> on Fri, 15 Nov 2002 09:19:36 +0000 (GMT)
No variable name!

not var+var

ie. myvar="a"

a=""

 --- Joe Ingle <joe@k...> wrote: > Dim
myvarA	'As String
> Dim myvarB	'As String
> Dim wibble	'As String
> 
> myvarA = "a"
> myvarB = "b"
> wibble = myvarA & myvarB
> 
> 
> Response.Write(""&wibble&"")
> 
> -----Original Message-----
> From: phill [mailto:philluk@y...]
> Sent: Thursday, November 14, 2002 11:11 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] How do you change a string
> to a variable name?
> 
> 
> myvarA="a"
> myvarB="b"
> myvarC="wibble"
> 
> 
> ?(myvarC)? = myvarA & myvarB
> 
> 
> response.write(wibble)
> 
> %>
> 
> like in PHP when
> 
> 
> $myvar = "bye"
> $$myvar = "value"
> 
> so $$myvar actualy becomes bye
> 

=====
Cheers Phill:-)

View Phill web page for webbies at http://www.page47.com

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Message #4 by "Joe" <joe@k...> on Fri, 15 Nov 2002 09:50:56
Apply yourself a little bit Phil!!

  Return to Index