RE: Weird CFC Problem
I'll try that. Looks like that will work. Thanks again, Brad -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 11:25 AM To: CF-Talk Subject: RE: Weird CFC Problem Ah, then change it to: Notice the use of duplicate. Before you were ending up with a pointer. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
Ah, then change it to: Notice the use of duplicate. Before you were ending up with a pointer. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
Actually, I DON'T want to update the server struct. It has default data that I use to populate "local" structures. My problem is that the server struct is being updated somehow, but I don't want it to. Only the query is updated, not the simple values of the struct. Hope that makes sense. -Brad -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:09 AM To: CF-Talk Subject: RE: Weird CFC Problem When you run structAppend(a,b) you are appending B onto A. In your case, you appended Server onto Data. If you wanted to update the server scope why didn't you just manipulate it directly? If you prefer using a pointer, you can use data = ""> Note - I do not recommend directly accessing server variables from CFCs. If your intent is to add X to a server variable, you should pass it in as an argument, or save the result, etc: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
When you run structAppend(a,b) you are appending B onto A. In your case, you appended Server onto Data. If you wanted to update the server scope why didn't you just manipulate it directly? If you prefer using a pointer, you can use data = ""> Note - I do not recommend directly accessing server variables from CFCs. If your intent is to add X to a server variable, you should pass it in as an argument, or save the result, etc: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Weird CFC Problem
The only way I know to explain this is to give an example. // THIS STRUCT IS IN SERVER SCOPE (3 simple values and a query) server.myData = structNew(); server.myData.var_1 = ""; server.myData.var_2 = ""; server.myData.var_3 = ""; server.myData.myQuery = queryNew("c1,c2,c3"); // THIS IS MY CFC Whenever I invoke the method "getInfo", and dump the server scope, server.myData.myQuery is not populated with the new query data. However, the other keys "var_1, var_2, etc." are not changed. I think this is a scoping issue, but I can't find it anywhere. -Brad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]