or as an alternate for the listloop:
while (listlen(form.fieldnames) GT 0){
field = ListFirst(form.fieldnames);
form[field] = "";
form.fieldnames = ListRest(form.fieldnames);
}
> Che Vilnonis wrote:
>
>> If yes, how would it look. :)
>>
>> <cfif NOT isDefined("Form.Fieldnames")>
>> <cfset Fieldnames = "CCType,CCNumber,CCID,CCMonth,CCYear,CCExpire">
<cfloop list="#Fieldnames#" index="i">
>> <cfset Form[i] = "">
>> </cfloop>
>> </cfif>
>
> if (NOT IsDefined("Form.Fieldnames") {
> Fieldnames = "CCType,CCNumber,CCID,CCMonth,CCYear,CCExpire" ; for (
i=1 ; i LTE ListLen(Fieldnames) ; i = i + 1 ) {
> form[ListGetAt(Fieldnames,i)] = "";
> }
> }
>
> Jochem
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Re: Can the following be written in cfscr... Jochem van Dieten
- Re: Can the following be written in cfscript? Mark Drew
- RE: Can the following be written in cfscript? DURETTE, STEVEN J (AIT)
- Re: Can the following be written in cfscript? S . Isaac Dealey
- RE: Can the following be written in cfscript? S . Isaac Dealey
- RE: Can the following be written in cfscript? Samuel R. Neff
- RE: Can the following be written in cfscr... Joe Eugene
- RE: Can the following be written in c... Jim Davis
- Re: Can the following be written in c... Dave Carabetta
- RE: Can the following be written ... Joe Eugene
- RE: Can the following be written in cfscript? Patricia Lee
- RE: Can the following be written in cfscript? Samuel R. Neff
- RE: Can the following be written in cfscr... Patricia Lee
- RE: Can the following be written in cfscript? S . Isaac Dealey
- RE: Can the following be written in cfscript? S . Isaac Dealey
- RE: Can the following be written in cfscript? S . Isaac Dealey
- RE: Can the following be written in cfscript? S . Isaac Dealey
- Re: Can the following be written in cfscript? Dick Applebaum
- RE: Can the following be written in cfscript? Tangorre, Michael
- Re: Can the following be written in cfscript? Peter Farrell