Re:Dynamic queryname in CFSCRIPT

2003-10-06 Thread Rory Lysaght
Matthew, Thank you - that did the trick.I assumed a string, the name of the query, was what I needed, but it works perfectly without the quotes. function timeRes(x) { myarray = arrayNew(1); myarray[1] = rsEquipAvail0; rCount = myarray[x].RecordCount; // etc. } Oh here's the problem: You are

Re:Dynamic queryname in CFSCRIPT

2003-10-06 Thread Rory Lysaght
That fixed it - thanks. Oh here's the problem: You are placing strings in your array -- rsEquipAvail1 is a string. Try it without the quotes. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

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 Rory Lysaght
What happens if you write: myQuery =myarray[x]; rCount = myQuery.recordCount instead of rCount = myarray[x].RecordCount; Good suggestion, but it generates the same error message on the rCount = myQuery.recordCount; line. [Todays Threads] [This Message] [Subscription] [Fast