Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding parameters within functions 1

Status
Not open for further replies.

profwannabe

Programmer
Jan 6, 2001
53
US
I am sure this is a simple one, but I can't seem to figure it outX-):

I need to embed the value #reporttype# within a CF function:
get#reporttype#Condition.recordcount

Since the name of the query is dynamically determined, I cannot seem to do much with it. I have tried a number of different approaches (i.e. cfset recordcount=get#reporttype#Condition.recordcount, then calling #recordcount#) to no avail. Any help would be greatly appreciated!
 
Hey profwannabe ,

it's all about Evaluate()...

<CFOUTPUT>
#Evaluate(&quot;get#reporttype#Condition.recordcount&quot;)#
</CFOUTPUT>

This will output your recordcount.
Have fun. It's Saturday. :)
 
Doh! I knew it had to be simple...

Thanks thlawkins! Now I can try to have a little fun...

profwannabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top