The code Tom has provided is correct.
The isDefined function takes a string as it's parameter. Your query column has a string in it. We are assuming that the string in the column you are using is "id0".
Here is the question.....
If you run the code as Tom has provided it (substituting only your query and your queryColumn)....... does it work ? (there are two possibly outcomes, it will either find the variable if it is defined and print some output or nothing will happen at all - if it is not defined).
On 6/15/05, Chad Renando <[EMAIL PROTECTED]> wrote:
Hi Tom.
> hrm, trying to work out what all that quoting and evaluating achieves.
> Without thinking too hard about it, aren't you wanting something along
> the lines of:
>
> <cfif isDefined(MyQuery.VariableColumn)>
> My variable name is #MyQuery.VariableColumn#
> Its value is #Evaluate(MyQuery.VariableColumn)#
> </cfif>
I know that MyQuery.VariableColumn is defined. The value is "id0".
If I then try to evaluate "id0" and "id0" is not defined, it throws an
error.
The application for this is that I am building forms and their
respective form fields on the fly. There are times when the default
value for a form field is passed via a variable. There are likely
better ways to do this, and I will likely spend a day or so figuring
it out in the future... or just whine here and have someone tell me.
> My mother always said if you don't have something nice to say... ;)
Gotta love mom.
Chad
who loves his mom
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
--- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
