Best to try the other suggestions and try to avoid evaluate()....
You don't want Raymond Camden shouting at you... ;oD

#variables["match"&id]#

Of course if you're on CFMX, you could just dump the whole of the scope.
<cfdump var="#variables#">

Stephen

Lovelock, Richard J wrote:
hmm that one didn't work - will try the other suggestions

_______________________________________________________
* Regards, Richard Lovelock Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London SW8 2HG ( 0870 906 7482
_______________________________________________________



-----Original Message----- From: Kevin Faulkner [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 14:34 To: '[EMAIL PROTECTED]' Subject: RE: [ cf-dev ] variable in a variable


I think that this will work with an evaluate,


try

<CFOUTPUT>
   <cfloop from="1" to="6" index="id">
        <cfdump var=evaluate("match#id#")>
   </cfloop>
</CFOUTPUT>

Worth a try at least!



-----Original Message-----
From: Lovelock, Richard J [mailto:[EMAIL PROTECTED]
Sent: 24 October 2003 14:34
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] variable in a variable


yes that works great thanks - but i have another situation where i don't think that works

i have 6 queries (for debugging) called match1 through to match6.

I want to output the contents of each one after the other, so I am trying:

<cfloop from="1" to="6" index="id">
        <cfdump var="#match#id##">
</cfloop>

I know that that is completely wrong syntax but i don't know how to correct
it or get it to work (as i need both sets of hashes don't i)?

_______________________________________________________
* Regards, Richard Lovelock Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London SW8 2HG ( 0870 906 7482
_______________________________________________________



-----Original Message----- From: Ian Westbrook (ASE) [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 14:26 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] variable in a variable


<cfset id = #somevariable#> #createtimespan(variables.id,0,0,0)# ?

Ian W



----- Original Message -----
From: "Lovelock, Richard J" <[EMAIL PROTECTED]>
To: "'cflist'" <[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 2:22 PM
Subject: [ cf-dev ] variable in a variable



how do you output a variable within a variable?

e.g. if I want to achieve #createtimespan(5,0,0,0)# but I want the 5 to

come


from a variable (e.g. id)

i tried #createtimespan(#id#,0,0,0)# but it doesn't like that - how do i

get


round this?

_______________________________________________________<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office" />

*  Regards,
               Richard Lovelock

Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG

( 0870 906 7482

_______________________________________________________




======================================================= This message contains information that may be privileged or confidential

and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, youare not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

=======================================================










--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to