contents of variable, not variable name as string

Results 1 to 2 of 2

Thread: contents of variable, not variable name as string

  1. #1
    Join Date
    Dec 1969
    Posts
    569

    Default contents of variable, not variable name as string

    i have a function that goes and does it&#039s thing, takes the parameter it is given, and concatinantes either a "0" or a "1" to the end of the value passed to it. the functions output will be the name of a predefined variable. the problem is that the function returns a string, i need the VALUE of that variable, not the variable name as a string.<BR><BR>simplified example:<BR><BR>function oneOrZero(something)<BR> oneOrZero = something & "1"<BR>end function<BR>&#060;% aName1 = "this is my contents" &#037;&#062;<BR>&#060;% thisVar = oneOrZero(aName) &#037;&#062;<BR>&#060;%= thisVar &#037;&#062;<BR><BR>right now it returns:<BR>aName1<BR><BR>i want it to return:<BR>this is my contents<BR><BR>i know i&#039m just missing something dumb :(<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: contents of variable, not variable name as string

    Your question has been answered on the Advanced ASP list.<BR>See:<BR><BR>http://www.aspmessageboard.com/forum/showmessage.asp?M=2478&P=1&F=27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •