RE: append variable to a variable??

2000-12-21 Thread Philip Arnold - ASP

> Why is it "better"?  SetVariable is just another redundant function to
> learn, another syntax to look up.  I believe there actually IS some
> circumstance where you MUST use it, but I just can't recall when.

In a word - CFScript

You can't use "Variable#i#"="test" in CFScript, but SetVariable works
perfectly

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-12-21 Thread BORKMAN Lee



It's beautiful.

Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork


IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-12-21 Thread cfxvx100

I believe there is a function in CF called SetVariable that will allow you
to create custom vars.

-Original Message-
From: Paul Mone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 11:58 PM
To: CF-Talk
Subject: RE: append variable to a variable??


You can use evaluate to do this to display variables:






#evaluate("EdName" & nIndex)#


However you cannot use it on the left side of an experssion, i.e





Maybe you should use an array.


-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 4:56 PM
To: CF-Talk
Subject: append variable to a variable??


Is there anyway to do this?

I have six variables in my database they are called:

EdName1, EdName2, etc.

It would be awesome if I could set a variable that could dynamically change
the number of each variable for me so I don't have to hard code the
variable.

For example (I know this doesn't work but it will get my point across:



#EdName#numvar## = EdName2

Thanks for your help

Sal
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: append variable to a variable??

2000-11-18 Thread John Foulds

Doing a simple 500,000 loop, it's actually slower on my NT.  You always pay
for abstraction.

(value+1) = 20 seconds
incrementvalue() = 25 seconds

John


- Original Message -
From: "Michael Thomas" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, November 17, 2000 5:17 AM
Subject: Re: append variable to a variable??


> Excellent question that I wouldnt mind knowing an answer to myself.
Anyone?
>
>
> >From: Rob Keniger <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: CF-Talk <[EMAIL PROTECTED]>
> >Subject: Re: append variable to a variable??
> >Date: Fri, 17 Nov 2000 14:31:52 +1000
> >
> >on 17/11/00 10:19 AM, BORKMAN Lee at [EMAIL PROTECTED] wrote:
> >
> > >
> > > As with most languages, you only need to use 50% (or even less) of a
> >CF's
> > > functions to do 99% of the stuff that you would ever want to do.
> > > Coincidentally, using just that 50% makes your code easier to work
with
> >for
> > > other average mortals.
> > >
> > > Everybody wins when you stick to basics!!
> >
> >I myself have wondered about why many seemingly redundant functions
exist.
> >An example of this is incrementvalue(). Why not just value + 1? Is it
> >faster
> >because it just uses a single register increment instead of having to
work
> >out a proper addition?
> >
> >Are the other functions like this there because they increase
performance?
> >
> >--
> >
> >Rob Keniger
> >
> >big bang solutions
> >
> ><mailto:[EMAIL PROTECTED]>
> ><http://www.bigbang.net.au>
> >
> >
> >~~
> >Structure your ColdFusion code with Fusebox. Get the official book at
> >https://secure.houseoffusion.com
> >
> >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> >Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-11-17 Thread Dave Watts

> > Using SetVariable is better
> >
> > 
>
> I disagree.
> 
> Why is it "better"? SetVariable is just another redundant function to
> learn, another syntax to look up. I believe there actually IS some
> circumstance where you MUST use it, but I just can't recall when.
> 
>  does exactly what you would 
> expect and hope. It's simple (as in Occam's Razor simple), elegant 
> and effective. Why do string concatenation using ampersands instead 
> of just embedding variables inside your strings? Is it a 'classier' 
> technique, perhaps?

I'd disagree with you, here.

In any programming language, you want to avoid "tricks" of the language. The
fact that you can evaluate a string automatically on the left side of a
CFSET is exactly that - it works, but there's no reason to expect it to
continue working in future versions of CF. It's a bit counterintuitive as
well, given that you can't do that in most programming languages that I've
seen.

On the other hand, the SetVariable function is explicitly designed to create
dynamically-named variables. That'll be supported in future versions. In
addition, when you're reading the code and you see "SetVariable", you
instantly know what's going on, while you might not notice variables named
dynamically using string concatenation.

To follow this to its extreme, I'd argue that you should place a variable on
the left side of the CFSET, which Justin's example is missing:



should be



Now, this isn't required either, in the current version of CF, but having a
variable on the left side of the assignment statement is intrinsic to the
idea of using an assignment statement!

As far as whether you're better off using ampersands for string
concatenation or simply evaluating variables within strings, that's up to
you. Six of one, half-dozen of the other. I prefer using ampersands, but I
make no claim of superiority for that method. I find it personally easier to
read.

In addition, I think you're misusing Occam's Razor, or the principle of
parsimony, which refers to the explanatory power of simplicity, rather than
the functional power of simplicity:

"one should not increase, beyond what is necessary, the number of entities
required to explain anything"

Basically, all it means is that if you can explain something with one step,
or with two steps, the explanation with one step is more likely to be
correct, all other things being equal. In any case, as a computer
programmer, you use complexity every day to make things simpler for others -
that's what programming is all about. Of course, there's room for
disagreement here, but I felt the need to make that philosophy major
worthwhile, and I hate to see epistemology gone bad.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-11-17 Thread Lee Borkman

Aidan,

I wonder why you tried the ugly version first.  Forget the ampersands, forget
SetVariable.  Maybe forget the vairables scoping as well.  Just do this:


Now doesn't that look much MUCH nicer than this:


I mean to say, what the hell is all THAT about?

Bjork.


---

From: Aidan Whitehall <[EMAIL PROTECTED]>
I tried to do something like this a while ago



and it fails (no function call on the LHS of an equals sign, or something
like that).

SetVariable to the rescue:



Ever since finding that out, I've avoided naming variables in the way you've
described above. I don't think there's anything inherently wrong with it
(you could create the variable name using another CFSET prior to this one),
but SetVariable just seems a bit more elegant.


-- 
Aidan Whitehall <[EMAIL PROTECTED]>
Netshopper UK Ltd



Get free email and a permanent address at http://www.netaddress.com/?N=1
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebarRsts



RE: append variable to a variable??

2000-11-17 Thread Aidan Whitehall

> Why is it "better"?  SetVariable is just another redundant function to
> learn, another syntax to look up.  I believe there actually IS some
> circumstance where you MUST use it, but I just can't recall when.
> 
>  does exactly what you would 
> expect and
> hope.  It's simple (as in Occam's Razor simple), elegant and 
> effective.  Why
> do string concatenation using ampersands instead of just 
> embedding variables
> inside your strings?  Is it a 'classier' technique, perhaps?


I tried to do something like this a while ago



and it fails (no function call on the LHS of an equals sign, or something
like that).

SetVariable to the rescue:



Ever since finding that out, I've avoided naming variables in the way you've
described above. I don't think there's anything inherently wrong with it
(you could create the variable name using another CFSET prior to this one),
but SetVariable just seems a bit more elegant.


-- 
Aidan Whitehall <[EMAIL PROTECTED]>
Netshopper UK Ltd
Advanced Web Solutions & Services

http://www.netshopperuk.com/
Telephone +44 (01744) 648650
Fax +44 (01744) 648651
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: append variable to a variable??

2000-11-17 Thread Michael Thomas

Excellent question that I wouldnt mind knowing an answer to myself. Anyone?


>From: Rob Keniger <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Re: append variable to a variable??
>Date: Fri, 17 Nov 2000 14:31:52 +1000
>
>on 17/11/00 10:19 AM, BORKMAN Lee at [EMAIL PROTECTED] wrote:
>
> >
> > As with most languages, you only need to use 50% (or even less) of a 
>CF's
> > functions to do 99% of the stuff that you would ever want to do.
> > Coincidentally, using just that 50% makes your code easier to work with 
>for
> > other average mortals.
> >
> > Everybody wins when you stick to basics!!
>
>I myself have wondered about why many seemingly redundant functions exist.
>An example of this is incrementvalue(). Why not just value + 1? Is it 
>faster
>because it just uses a single register increment instead of having to work
>out a proper addition?
>
>Are the other functions like this there because they increase performance?
>
>--
>
>Rob Keniger
>
>big bang solutions
>
><mailto:[EMAIL PROTECTED]>
><http://www.bigbang.net.au>
>
>
>~~
>Structure your ColdFusion code with Fusebox. Get the official book at 
>https://secure.houseoffusion.com
>
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-11-16 Thread BORKMAN Lee

Yes, I believe that IncrementValue IS faster, but I'm not going to use it
except where I need to squeeze the last millisecond from a heavily-used
piece of code.

Comprehensibility + readabaility = maintainability + reliabaility, or
something like that.

Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork


-Original Message-
From: Rob Keniger [mailto:[EMAIL PROTECTED]]


I myself have wondered about why many seemingly redundant functions exist.
An example of this is incrementvalue(). Why not just value + 1? Is it faster
because it just uses a single register increment instead of having to work
out a proper addition?

Are the other functions like this there because they increase performance?



IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: append variable to a variable??

2000-11-16 Thread Rob Keniger

on 17/11/00 10:19 AM, BORKMAN Lee at [EMAIL PROTECTED] wrote:

> 
> As with most languages, you only need to use 50% (or even less) of a CF's
> functions to do 99% of the stuff that you would ever want to do.
> Coincidentally, using just that 50% makes your code easier to work with for
> other average mortals.
> 
> Everybody wins when you stick to basics!!

I myself have wondered about why many seemingly redundant functions exist.
An example of this is incrementvalue(). Why not just value + 1? Is it faster
because it just uses a single register increment instead of having to work
out a proper addition?

Are the other functions like this there because they increase performance?

-- 
 
Rob Keniger

big bang solutions





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-11-16 Thread BORKMAN Lee

I disagree.

Why is it "better"?  SetVariable is just another redundant function to
learn, another syntax to look up.  I believe there actually IS some
circumstance where you MUST use it, but I just can't recall when.

 does exactly what you would expect and
hope.  It's simple (as in Occam's Razor simple), elegant and effective.  Why
do string concatenation using ampersands instead of just embedding variables
inside your strings?  Is it a 'classier' technique, perhaps?

As with most languages, you only need to use 50% (or even less) of a CF's
functions to do 99% of the stuff that you would ever want to do.
Coincidentally, using just that 50% makes your code easier to work with for
other average mortals.

Everybody wins when you stick to basics!!

Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork


-Original Message-
From: JustinMacCarthy [mailto:[EMAIL PROTECTED]]
Using SetVariable is better





IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: append variable to a variable??

2000-11-16 Thread JustinMacCarthy

Using SetVariable is better



Justin 

>-Original Message-
>From: S R [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, November 16, 2000 5:29 PM
>To: CF-Talk
>Subject: RE: append variable to a variable??
>
>
>Thanks Everyone!!
>
>Sal
>
>
>>From: "Andrew" <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: CF-Talk <[EMAIL PROTECTED]>
>>Subject: RE: append variable to a variable??
>>Date: Wed, 15 Nov 2000 22:40:23 -0500
>>
>>Sal:
>>
>>Sure there is. try this for instance:
>>
>>
>>
>>
>>Edname2 is #Edname2#
>>
>>How's that?
>>
>>
>>Andrew Hewitt
>>Web Application Developer
>>webworld studios, inc.
>>www.wwstudios.com
>>
>>
>>-Original Message-
>>From: S R [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, November 15, 2000 7:56 PM
>>To: CF-Talk
>>Subject: append variable to a variable??
>>
>>
>>Is there anyway to do this?
>>
>>I have six variables in my database they are called:
>>
>>EdName1, EdName2, etc.
>>
>>It would be awesome if I could set a variable that could 
>dynamically change
>>the number of each variable for me so I don't have to hard code the
>>variable.
>>
>>For example (I know this doesn't work but it will get my point across:
>>
>>
>>
>>#EdName#numvar## = EdName2
>>
>>Thanks for your help
>>
>>Sal
>>_
>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>>
>>Share information about yourself, create your own public profile at
>>http://profiles.msn.com.
>>
>>--
>--
>>
>>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists 
>or send a
>>message with 'unsubscribe' in the body to 
>>[EMAIL PROTECTED]
>>
>>
>>--
>--
>>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists 
>or send a 
>>message with 'unsubscribe' in the body to 
>>[EMAIL PROTECTED]
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at 
>http://profiles.msn.com.
>
>---
>-
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists 
>or send a message with 'unsubscribe' in the body to 
>[EMAIL PROTECTED]
>
>

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: append variable to a variable??

2000-11-16 Thread S R

Thanks Everyone!!

Sal


>From: "Andrew" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: append variable to a variable??
>Date: Wed, 15 Nov 2000 22:40:23 -0500
>
>Sal:
>
>Sure there is. try this for instance:
>
>
>
>
>Edname2 is #Edname2#
>
>How's that?
>
>
>Andrew Hewitt
>Web Application Developer
>webworld studios, inc.
>www.wwstudios.com
>
>
>-Original Message-
>From: S R [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, November 15, 2000 7:56 PM
>To: CF-Talk
>Subject: append variable to a variable??
>
>
>Is there anyway to do this?
>
>I have six variables in my database they are called:
>
>EdName1, EdName2, etc.
>
>It would be awesome if I could set a variable that could dynamically change
>the number of each variable for me so I don't have to hard code the
>variable.
>
>For example (I know this doesn't work but it will get my point across:
>
>
>
>#EdName#numvar## = EdName2
>
>Thanks for your help
>
>Sal
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>
>
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
>message with 'unsubscribe' in the body to 
>[EMAIL PROTECTED]
>
>
>
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a 
>message with 'unsubscribe' in the body to 
>[EMAIL PROTECTED]

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: append variable to a variable??

2000-11-15 Thread Sandra Clark


#evaluate('Edname#x#')#


-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 4:56 PM
To: CF-Talk
Subject: append variable to a variable??


Is there anyway to do this?

I have six variables in my database they are called:

EdName1, EdName2, etc.

It would be awesome if I could set a variable that could dynamically change
the number of each variable for me so I don't have to hard code the
variable.

For example (I know this doesn't work but it will get my point across:



#EdName#numvar## = EdName2

Thanks for your help

Sal
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: append variable to a variable??

2000-11-15 Thread Paul Mone

Wow, I didn't know you could do that.  thanks.

-Original Message-
From: Andrew [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 7:40 PM
To: CF-Talk
Subject: RE: append variable to a variable??


Sal:

Sure there is. try this for instance:




Edname2 is #Edname2#

How's that?


Andrew Hewitt
Web Application Developer
webworld studios, inc.
www.wwstudios.com


-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 7:56 PM
To: CF-Talk
Subject: append variable to a variable??


Is there anyway to do this?

I have six variables in my database they are called:

EdName1, EdName2, etc.

It would be awesome if I could set a variable that could dynamically change
the number of each variable for me so I don't have to hard code the
variable.

For example (I know this doesn't work but it will get my point across:



#EdName#numvar## = EdName2

Thanks for your help

Sal
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]




Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: append variable to a variable??

2000-11-15 Thread Paul Mone

You can use evaluate to do this to display variables:






#evaluate("EdName" & nIndex)#


However you cannot use it on the left side of an experssion, i.e





Maybe you should use an array.


-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 4:56 PM
To: CF-Talk
Subject: append variable to a variable??


Is there anyway to do this?

I have six variables in my database they are called:

EdName1, EdName2, etc.

It would be awesome if I could set a variable that could dynamically change
the number of each variable for me so I don't have to hard code the
variable.

For example (I know this doesn't work but it will get my point across:



#EdName#numvar## = EdName2

Thanks for your help

Sal
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



Re: append variable to a variable??

2000-11-15 Thread Justin Scott

I haven't done this in a while, but I believe this is the correct syntax...



___

Justin Scott :: [Staff Developer]
http://www.annex.com


> EdName1, EdName2, etc.
>
> It would be awesome if I could set a variable that could dynamically
change
> the number of each variable for me so I don't have to hard code the
> variable.
>
> For example (I know this doesn't work but it will get my point across:
>
> 
>
> #EdName#numvar## = EdName2



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



RE: append variable to a variable??

2000-11-15 Thread Andrew

Sal:

Sure there is. try this for instance:




Edname2 is #Edname2#

How's that?


Andrew Hewitt
Web Application Developer
webworld studios, inc.
www.wwstudios.com


-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 7:56 PM
To: CF-Talk
Subject: append variable to a variable??


Is there anyway to do this?

I have six variables in my database they are called:

EdName1, EdName2, etc.

It would be awesome if I could set a variable that could dynamically change
the number of each variable for me so I don't have to hard code the
variable.

For example (I know this doesn't work but it will get my point across:



#EdName#numvar## = EdName2

Thanks for your help

Sal
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]