Dynamic queryname in CFSCRIPT

2003-10-05 Thread Rory Lysaght
I've got a function that needs to check a different query depending on how it's called.But I keep getting this error: You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. The function is evaluating the string properly, but the line

RE: Dynamic queryname in CFSCRIPT

2003-10-05 Thread Matthew Walker
What happens if you write: myQuery =myarray[x]; rCount = myQuery.recordCount instead of rCount = myarray[x].RecordCount; ? -Original Message- From: Rory Lysaght [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 10:45 a.m. To: CF-Talk Subject: Dynamic queryname in CFSCRIPT

RE: Dynamic queryname in CFSCRIPT

2003-10-05 Thread Matthew Walker
Oh here's the problem: You are placing strings in your array -- rsEquipAvail1 is a string. Try it without the quotes. -Original Message- From: Rory Lysaght [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 10:45 a.m. To: CF-Talk Subject: Dynamic queryname in CFSCRIPT I've got

Re: Dynamic queryname in CFSCRIPT

2003-10-05 Thread Claude Schneegans
I suppose rsEquipAvail1 and rsEquipAvail2 are queries? Then try this rCount = evaluate(myarray[x] .RecordCount); [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]