This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C019DD.E44CBCB8
Content-Type: text/plain;
        charset="iso-8859-1"

<cfset formField = Listgetat(Form.fieldnames, count)>
<CFSET "#formField#" = 4>

HTH,

Robert

-----Original Message-----
From: Ian [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 3:47 PM
To: [EMAIL PROTECTED]
Subject: Replacing a value in the list form.fieldnames


I have a list of variables sent by a form. I need to make sure that none of
the variable values are incompatible with each other. This isn't the
problem.
The problem is changing the Form.whatever = value to a compatible value
(Form.field2 = 2. Form.field3 = 3 but 3 is not compatible with 2 so I need
to
change Form.field3 to = 4). Using CFSET I can't use a function on the left
side of the = <CFSET (Listgetat(Form.fieldnames, count) = 4>. I can't hard
code it because the fieldnames are drawn from a database and change
depending
on what itemthe form is built for. 

Any suggestions?

Ian

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://home.netscape.com/webmail
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------_=_NextPart_001_01C019DD.E44CBCB8
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Replacing a value in the list form.fieldnames</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>&lt;cfset formField =3D Listgetat(Form.fieldnames, =
count)&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;CFSET &quot;#formField#&quot; =3D 4&gt;</FONT>
</P>

<P><FONT SIZE=3D2>HTH,</FONT>
</P>

<P><FONT SIZE=3D2>Robert</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Ian [<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]=
et</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, September 08, 2000 3:47 PM</FONT>
<BR><FONT SIZE=3D2>To: [EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>Subject: Replacing a value in the list =
form.fieldnames</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I have a list of variables sent by a form. I need to =
make sure that none of</FONT>
<BR><FONT SIZE=3D2>the variable values are incompatible with each =
other. This isn't the problem.</FONT>
<BR><FONT SIZE=3D2>The problem is changing the Form.whatever =3D value =
to a compatible value</FONT>
<BR><FONT SIZE=3D2>(Form.field2 =3D 2. Form.field3 =3D 3 but 3 is not =
compatible with 2 so I need to</FONT>
<BR><FONT SIZE=3D2>change Form.field3 to =3D 4). Using CFSET I can't =
use a function on the left</FONT>
<BR><FONT SIZE=3D2>side of the =3D &lt;CFSET =
(Listgetat(Form.fieldnames, count) =3D 4&gt;. I can't hard</FONT>
<BR><FONT SIZE=3D2>code it because the fieldnames are drawn from a =
database and change depending</FONT>
<BR><FONT SIZE=3D2>on what itemthe form is built for. </FONT>
</P>

<P><FONT SIZE=3D2>Any suggestions?</FONT>
</P>

<P><FONT SIZE=3D2>Ian</FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________________________=
_____</FONT>
<BR><FONT SIZE=3D2>Get your own FREE, personal Netscape WebMail account =
today at <A HREF=3D"http://home.netscape.com/webmail" =
TARGET=3D"_blank">http://home.netscape.com/webmail</A></FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------------</FONT>
<BR><FONT SIZE=3D2>Archives: <A =
HREF=3D"http://www.mail-archive.com/[email protected]/" =
TARGET=3D"_blank">http://www.mail-archive.com/[email protected]/=
</A></FONT>
<BR><FONT SIZE=3D2>To Unsubscribe visit <A =
HREF=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dli=
sts/cf_talk" =
TARGET=3D"_blank">http://www.houseoffusion.com/index.cfm?sidebar=3Dlists=
&body=3Dlists/cf_talk</A> or send a message to =
[EMAIL PROTECTED] with 'unsubscribe' in the =
body.</FONT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C019DD.E44CBCB8--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to