Re: chr(10) AND CFSCRIPT

2005-06-11 Thread Barney Boisvert
You meant chr(13)  chr(10) for the windows line ending, right?  And
the 'mac' line ending is only for Mac OS9 and earlier.  Mac OSX (since
it's *nix based) uses just the line feed.

cheers,
barneyb

On 6/10/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:
 That will work in most browsers, Windows or otherwise, because they all seem
 to interpret chr(10) as enough for a newline even if the OS demands a cr-lf
 combination for a valid line break.
 
 But if you're creating PDFs, you'll probably want writeOutput('some text
 here'  chr(10)  chr(13)) just to make sure that you're feeing it valid
 linefeeds. You may check the PDF documentation (what there is of it, anyway)
 to see exactly what character combo it wants for a newline. Generally, the
 character sets are as follows:
 
 Mac: cr
 Win: cr-lf
 *NIX: lf
 
 It's kinda twitchy, and a PITA, to get the characters just right...
 experiment and see what you come up with.
 
 Laterz!
 
 J
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209218
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-11 Thread James Taavon
well, that did not work. I keep getting invalid CFML construct. i believe i 
need to use #chr(10). Here what i am trying to do exactly. I have a shipping 
address populating a cell in an array. Now i want to have a carriage return 
after each line in the address in the same array cell.
CODE:

Q_ShipmentList.EK_CompName[j], a_shipment[3][2]
Q_ShipmentList.EK_Attention[j], a_shipment[3][2]
Q_ShipmentList.EK_Addr1[j], a_shipment[3][2]
Q_ShipmentList.EK_Addr2[j], a_shipment[3][2]
Q_ShipmentList.EK_Addr3[j], a_shipment[3][2]
Q_ShipmentList.EK_City[j], a_shipment[3][2]
Q_ShipmentList.EK_State[j], a_shipment[3][2]
Q_ShipmentList.EK_Zip[j],a_shipment[3][2]


You meant chr(13)  chr(10) for the windows line ending, right?  And
the 'mac' line ending is only for Mac OS9 and earlier.  Mac OSX (since
it's *nix based) uses just the line feed.

cheers,
barneyb

On 6/10/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209226
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


chr(10) AND CFSCRIPT

2005-06-10 Thread James Taavon
i want to be able to force a carriage return while getting output back within a 
cfscript block. i have tried several combos, but nothing seems to work. also 
using PDFLib if anyone is familiar with that as well.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209209
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-10 Thread Barney Boisvert
cfscript
  writeOutput('text with newline'  chr(10));
/cfscript

that should do ya.

cheers,
barneyb

On 6/10/05, James Taavon [EMAIL PROTECTED] wrote:
 i want to be able to force a carriage return while getting output back within 
 a cfscript block. i have tried several combos, but nothing seems to work. 
 also using PDFLib if anyone is familiar with that as well.
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209210
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-10 Thread Jared Rypka-Hauer - CMG, LLC
That will work in most browsers, Windows or otherwise, because they all seem 
to interpret chr(10) as enough for a newline even if the OS demands a cr-lf 
combination for a valid line break.

But if you're creating PDFs, you'll probably want writeOutput('some text 
here'  chr(10)  chr(13)) just to make sure that you're feeing it valid 
linefeeds. You may check the PDF documentation (what there is of it, anyway) 
to see exactly what character combo it wants for a newline. Generally, the 
character sets are as follows:

Mac: cr
Win: cr-lf
*NIX: lf

It's kinda twitchy, and a PITA, to get the characters just right... 
experiment and see what you come up with.

Laterz!

J

On 6/10/05, Barney Boisvert [EMAIL PROTECTED] wrote:
 
 cfscript
 writeOutput('text with newline'  chr(10));
 /cfscript
 
 that should do ya.
 
 cheers,
 barneyb
 
 On 6/10/05, James Taavon [EMAIL PROTECTED] wrote:
  i want to be able to force a carriage return while getting output back 
 within a cfscript block. i have tried several combos, but nothing seems to 
 work. also using PDFLib if anyone is familiar with that as well.
 
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/




-- 
---
-
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209213
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54