syntax was:
<cfset function_result = evaluate(function_name_var & "()")>
For passing arguments:
<cfset function_result = evaluate(function_name_var &
"(#arg1_variable#,arg2_as_number,'arg3_as_text')")>
OR
<cfset function_result = evaluate(function_name_var & "(" & arg1_variable &
",arg2_as_number,'arg3_as_text')")>
TK
-----Original Message-----
From: Lee Flier [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 12:54 PM
To: CF-Talk
Subject: Syntax for an event loop
Hey all,
I'm setting up an event loop for processing a series of functions. Each
function will return the name of the next function to run, depending
what happens during the function. I'm trying to figure how I would set
up the syntax for this. Should the following work or do I need to do
something else?
<cfset current_event = "first_event">
<cfloop condition = "current_event IS NOT 'Done'">
<!---- This is the line I'm not sure about! --->
current_event = #current_event#()
</cfloop>
<!--- individual functions for each step --->
<CFFUNCTION name = "first_event" RETURNTYPE = "string" OUTPUT = "Yes">
.... <do some stuff> ...
<CFRETURN "second_event">
</CFFUNCTION>
.... and so on...
<CFFUNCTION name = "last_event" RETURNTYPE = "string" OUTPUT = "Yes">
.... <do some stuff> ...
<CFRETURN "Done">
</CFFUNCTION>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

