What I'd do is take the returned value from your query (eg. It is now
#Now()#) and do a regular expression find (ReFind) for the #..#'s and
evaluate() the content between the #;s.

eg.

1. Find statements enclosed in #..# in 'It is now #Now()#'

2. Evaluate(Now())

3. Re-insert the evalauted value back into the value, 'It is now 23:45'

4. cfoutput new value

> -----Original Message-----
> From: Harrison, Richard (Web Development)
> [SMTP:[EMAIL PROTECTED]]
> Sent: 10 November 2000 10:38
> To:   CF-Talk
> Subject:      Help With a prob
> 
> Hi,
> 
> I have a prob and was wondering is someone could help or point in the
> right
> direction.
>  
> <CFQUERY name="qry1" dataSource="xxx">
>       SELECT  field1
>       FROM    Table1, Table2 
>       WHERE   Table.field2 = Table2.field2
>       AND     (Table2.field3 = 'E0000047')
>       AND             (Table1.Field4 = '#PageHID#')
> </CFQUERY>
> 
> 
> later on i use the results of this
> 
> <frame name="main" src="<CFOUTPUT>#qry1.field1#</CFOUTPUT>"
> marginwidth="0"
> marginheight="0" scrolling="auto" frameborder="no">
> 
> that works fine, however the data for that returned qurey contains a value
> like this http://#WEB_SERVER#/Dir1/dir2/file1.cfm and when it is loaded
> into
> a browser it returns the following result http:///Dir1/dir2/file1.cfm note
> the 3 /'s
> 
> no matter what i do the value of #WEB_SERVER# does not get evaluated (just
> ignored it seems). I know that #WEB_SERVER# is valid because if i replace
> <CFOUTPUT>#qry1.field1#</CFOUTPUT> with <CFOUTPUT>#WEB_SERVER#</CFOUTPUT>
> it
> returns the expected result.
> 
> It seems that CF will evaluate 1 <cfoutput></cfouput> but if that
> evaluation
> includes another variable that needs to be evaluated then it ignores it.
> 
> any suggestions?
> 
> Richard
> 
> 
> --------------------------------------------------------------------------
> ---------------------------------------------
> This e-mail is intended only for the above addressee.  It may contain
> privileged information. If you are not the addressee you must not copy,
> distribute, disclose or use any of the information in it.  If you have
> received it in error please delete it and immediately notify the sender.
> 
> evolvebank.com is a division of Lloyds TSB Bank plc.
> Lloyds TSB Bank plc, 71 Lombard Street, London EC3P 3BS.  Registered in
> England, number 2065.  Telephone No: 020 7626 1500
> Lloyds TSB Scotland plc, Henry Duncan House, 120 George Street,
> Edinburgh EH2 4LH.  Registered in Scotland, number 95237.  Telephone
> No: 0131 225 4555
> 
> Lloyds TSB Bank plc and Lloyds TSB Scotland plc are regulated by the
> Personal Investment Authority and represent only the Scottish Widows
> and Lloyds TSB Marketing Group for life assurance, pensions and
> investment business.
> 
> Members of the UK Banking Ombudsman Scheme and signatories to the UK
> Banking Code.
> --------------------------------------------------------------------------
> ---------------------------------------------
> --------------------------------------------------------------------------
> ----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
> a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]


-----------------------------------------------
Any opinions expressed in this message are those of the individual and not necessarily 
the company.  This message and any files transmitted with it are confidential and 
solely for the use of the intended recipient.  If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be advised that 
you have received this message in error and that any use is strictly prohibited.

Sapphire Technologies Ltd
http://www.sapphire.net
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to