Re: Dynamic array names HELP!!!!

2005-06-02 Thread Mike Hughes
SetVariable works, Thanks

On 6/1/05, James Holmes <[EMAIL PROTECTED]> wrote:
> OK, for CF 5 try using the SetVariable() function.
> 
> -Original Message-
> From: Mike Hughes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 2 June 2005 11:28
> To: CF-Talk
> Subject: Re: Dynamic array names HELP
> 
> I need it to work in CF5. We do not have CFMX running on my server, for
> now. This did work in CFMX but not in CF5.
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208344
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Dynamic array names HELP!!!!

2005-06-02 Thread Pascal Peters
Create a structure of arrays based on the employee number instead of
having dynamic names.

EmployeAry = StructNew();

EmployeAry[EmployeeNumber][RowNu_][1] =
CalendarInfo.EmployeeNumber[CurRow];

Otherwise you will need the functions ArrayAppend and ArrayInsertAt

Pascal

> -Original Message-
> From: Mike Hughes [mailto:[EMAIL PROTECTED]
> Sent: 02 June 2005 05:28
> To: CF-Talk
> Subject: Re: Dynamic array names HELP
> 
> I need it to work in CF5. We do not have CFMX running on my server,
> for now. This did work in CFMX but not in CF5.
> 
> On 6/1/05, James Holmes <[EMAIL PROTECTED]> wrote:
> > Assuming CFMX, use the array's container struct (probably VARIABLES
in
> > this case):
> >
> > VARIABLES["EmployeAry_" & EmployeeNumber][RowNu_][1] =
> > CalendarInfo.EmployeeNumber[CurRow];
> >
> >
> > -Original Message-
> > From: Mike Hughes [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 2 June 2005 11:06
> > To: CF-Talk
> > Subject: Dynamic array names HELP
> >
> > Hi all
> >
> > I am building a few arrays on one template using the data from one
> > query. I made the arrays with no problem, but CF is giving me a "not
a
> > valid variable name" error.  I need to call and add to an array name
> > Dynamically.
> >
> > // Check to see if it is an array
> > writeoutput(IsArray(Evaluate("EmployeAry_#EmployeeNumber#"),2));
> >
> > This works, but I do not know the Employee Number everytime.
> >EmployeAry_116["#RowNu_#"][8] =
CalendarInfo.EmployeeNumber[CurRow];
> >
> >
> > This does not work, But I need to call the Dynamic array names
> >"EmployeAry_#EmployeeNumber#[#RowNu_#][1]" =
> > CalendarInfo.EmployeeNumber[CurRow];
> >
> >
> > Can someone give my the right syntax.
> >
> >
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208326
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Dynamic array names HELP!!!!

2005-06-01 Thread James Holmes
OK, for CF 5 try using the SetVariable() function. 

-Original Message-
From: Mike Hughes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 2 June 2005 11:28 
To: CF-Talk
Subject: Re: Dynamic array names HELP

I need it to work in CF5. We do not have CFMX running on my server, for
now. This did work in CFMX but not in CF5.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208318
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Dynamic array names HELP!!!!

2005-06-01 Thread Mike Hughes
I need it to work in CF5. We do not have CFMX running on my server,
for now. This did work in CFMX but not in CF5.

On 6/1/05, James Holmes <[EMAIL PROTECTED]> wrote:
> Assuming CFMX, use the array's container struct (probably VARIABLES in
> this case):
> 
> VARIABLES["EmployeAry_" & EmployeeNumber][RowNu_][1] =
> CalendarInfo.EmployeeNumber[CurRow];
> 
> 
> -Original Message-
> From: Mike Hughes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 2 June 2005 11:06
> To: CF-Talk
> Subject: Dynamic array names HELP
> 
> Hi all
> 
> I am building a few arrays on one template using the data from one
> query. I made the arrays with no problem, but CF is giving me a "not a
> valid variable name" error.  I need to call and add to an array name
> Dynamically.
> 
> // Check to see if it is an array
> writeoutput(IsArray(Evaluate("EmployeAry_#EmployeeNumber#"),2));
> 
> This works, but I do not know the Employee Number everytime.
>EmployeAry_116["#RowNu_#"][8] = CalendarInfo.EmployeeNumber[CurRow];
> 
> 
> This does not work, But I need to call the Dynamic array names
>"EmployeAry_#EmployeeNumber#[#RowNu_#][1]" =
> CalendarInfo.EmployeeNumber[CurRow];
> 
> 
> Can someone give my the right syntax.
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208315
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Dynamic array names HELP!!!!

2005-06-01 Thread James Holmes
Assuming CFMX, use the array's container struct (probably VARIABLES in
this case):

VARIABLES["EmployeAry_" & EmployeeNumber][RowNu_][1] =
CalendarInfo.EmployeeNumber[CurRow];


-Original Message-
From: Mike Hughes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 2 June 2005 11:06 
To: CF-Talk
Subject: Dynamic array names HELP

Hi all 

I am building a few arrays on one template using the data from one
query. I made the arrays with no problem, but CF is giving me a "not a
valid variable name" error.  I need to call and add to an array name
Dynamically.

// Check to see if it is an array
writeoutput(IsArray(Evaluate("EmployeAry_#EmployeeNumber#"),2));

This works, but I do not know the Employee Number everytime. 
EmployeAry_116["#RowNu_#"][8] = CalendarInfo.EmployeeNumber[CurRow];


This does not work, But I need to call the Dynamic array names 
"EmployeAry_#EmployeeNumber#[#RowNu_#][1]" =
CalendarInfo.EmployeeNumber[CurRow];


Can someone give my the right syntax.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208314
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54