You don't need the Evaluate() in the IsDefined() portion, just in the
Len():
<CFIF IsDefined((Form.txtPaymentAmount#contact_id#') AND
Len(Evaluate(Form.txtPaymentAmount#contact_id#))>
>OK .. now I have this:
>
><CFIF IsDefined(Evaluate(Form.txtPaymentAmount#contact_id#')) AND
>Len(Evaluate(Form.txtPaymentAmount#contact_id#))>
>
>and I'm getting:
>----------------------------------------------------------------------------
>-----------------
>Just in time compilation error
>
>Invalid parser construct found on line 27 at position 32. ColdFusion was
>looking at the following text:
>
>Form.txtPaymentAmount
>
>Invalid expression format. The usual cause is an error in the expression
>structure.
>----------------------------------------------------------------------------
>-----------------
>
>I have tried it with and without quotes.
>
>Todd
>
>----- Original Message -----
>From: "Alexander Lamon" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, April 10, 2000 11:19 AM
>Subject: Re: Evaluate('Form.field#sub#')
>
>
>> Instead of <Form.txtField#primary_key# IS NOT ""> try using <CFIF Not
>> Len(Evaluate(Form.txtField#primary_key#))>
>>
>> Using Len is faster than using 'IS NOT ""' and I think you need to use
>> EVALUATE to test for an empty string in this case.
>
>
>--------------------------------------------------------------------------
>----
>Archives: http://www.eGroups.com/list/cf-talk
>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.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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.