Re: assigning value to dynamic variable
The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: assigning value to dynamic variable
oops remove the "evaluate(" from the beginning! (I really should proofread...) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Jamie Keane [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:31 PM Subject: Re: assigning value to dynamic variable The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith -- - --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: assigning value to dynamic variable
Check that: SetVar is not the proper function, the proper function is SetVariable or: CFSET Temp = SetVariable("Name", "Value") Gregory Harris Los Angeles Information Technology Agency (ITA) [EMAIL PROTECTED] [EMAIL PROTECTED] 08/23 1:32 PM The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: assigning value to dynamic variable
What about making CurBills a structure? Then you could do something like: cfset CurBills[myBillFolder] = whatever Brad -Original Message- From: Ric Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 1:23 PM To: [EMAIL PROTECTED] Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=list s/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: assigning value to dynamic variable
I get an error with your code as well. I get a different error though. The error with your code is more of a syntax issue though. I believe the cause of the initial error is CF doesn't want me to use the evaluate function to dynamicly name a variable. Any ways around this? Thanks. --- Just in time compilation error Invalid parser construct found on line 127 at position 46. ColdFusion was looking at the following text: = Invalid expression format. The usual cause is an error in the expression structure. Ric Smith - Original Message - From: "Jamie Keane" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 23, 2000 4:32 PM Subject: Re: assigning value to dynamic variable The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: assigning value to dynamic variable
Thanks for the help fellows. Much appreciated. Ric Smith - Original Message - From: "Gregory Harris" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 23, 2000 4:45 PM Subject: Re: assigning value to dynamic variable Yeah removing Evaluate can work too I believe. But if you need some sort of dynamic variable setting, revert back to SetVariable function. Good thinking Jamie :-) Gregory Harris Los Angeles Information Technology Agency (ITA) [EMAIL PROTECTED] [EMAIL PROTECTED] 08/23 1:37 PM oops remove the "evaluate(" from the beginning! (I really should proofread...) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Jamie Keane [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:31 PM Subject: Re: assigning value to dynamic variable The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith -- - --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=stsbody=sts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: assigning value to dynamic variable
You can NOT use a function on the left hand side like the error message says. Better solution would be something like CFSET temp = setvar("variablename", "varvalue") Or here try this CFSET VarName = Evaluate("CurBills_#myBillFolder#" CFSET VarValue = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CFSET temp = SetVar("VarName", "VarValue") Gregory Harris Los Angeles Information Technology Agency (ITA) [EMAIL PROTECTED] [EMAIL PROTECTED] 08/23 1:32 PM The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: assigning value to dynamic variable
Check out SetVariable cfset dummy = SetVariable(variablename, expression) Just a guess: CFSET dummy = SetVariable(Evaluate("CurBills_"myBillFolder),ListAppend(Trim(Evaluate("Cur Bills_"myBillFolder)), myBillnum)) -Original Message- From: Ric Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 4:23 PM To: [EMAIL PROTECTED] Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: assigning value to dynamic variable
Yeah removing Evaluate can work too I believe. But if you need some sort of dynamic variable setting, revert back to SetVariable function. Good thinking Jamie :-) Gregory Harris Los Angeles Information Technology Agency (ITA) [EMAIL PROTECTED] [EMAIL PROTECTED] 08/23 1:37 PM oops remove the "evaluate(" from the beginning! (I really should proofread...) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Jamie Keane [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:31 PM Subject: Re: assigning value to dynamic variable The proper syntax is: CFSET Evaluate("CurBills_#myBillFolder#" =ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.563.5559 x 228 Voice 704.849.9291 Fax -Original Message- From: Ric Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, August 23, 2000 4:24 PM Subject: assigning value to dynamic variable How can I accomplish this. CFSET Evaluate("CurBills_"myBillFolder) = ListAppend(Trim(Evaluate("CurBills_"myBillFolder)), myBillnum) CF doesn't want to let me use a function . - Just in time compilation error Illegal left hand side of assignment near line 127, column 11. Left hand side cannot be a function call. --- There must be a way to do this, my brain is a little mushy. Help! Ric Smith -- - --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- --- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.