Re: [WebDNA] Check for Ending Carriage Return

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102196
interpreted = N
texte = O.K., Here is what I came up with: [!] ** Check for ending carriage return ** [/!] [text]LastCharacter=[!] [/!][grep search=[%0D%0A%20]&replace=][!] [/!][shell]tail -c 1 test.db | od[/shell][!] [/!][/grep][/text]  [hideif 00000000000120000001=[url][LastCharacter][/url]] [text multi=T]tOk=F&Error=carriage return missing[/text] [/hideif] Seems to work, but is only good on *nix systems... checks for CRLF (*nix format). Donovan -- Donovan D. Brooke PH: 1 (608) 770-3822 ------------------------------------------------ VP WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958 Associated Messages, from the most recent to the oldest:

    
  1. RE: [WebDNA] Check for Ending Carriage Return ("Olin Lagon" 2009)
  2. Re: [WebDNA] Check for Ending Carriage Return (Donovan Brooke 2009)
  3. [WebDNA] Check for Ending Carriage Return (Donovan Brooke 2009)
O.K., Here is what I came up with: [!] ** Check for ending carriage return ** [/!] [text]LastCharacter=[!] [/!][grep search=[%0D%0A%20]&replace=][!] [/!][shell]tail -c 1 test.db | od[/shell][!] [/!][/grep][/text]  [hideif 00000000000120000001=[url][LastCharacter][/url]] [text multi=T]tOk=F&Error=carriage return missing[/text] [/hideif] Seems to work, but is only good on *nix systems... checks for CRLF (*nix format). Donovan -- Donovan D. Brooke PH: 1 (608) 770-3822 ------------------------------------------------ VP WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958 Donovan Brooke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2 - Getting to the browser's username/password data (1997) WebCatalog2 for NT Beta Request (1997) Error Lob.db records error message not name (1997) Interface to Quickbooks (2005) RE: Languages (1997) Removing [showif] makes a big difference in speed (1997) [WebDNA] Installing 6.0 onto Server 2008 (2011) [OT] Who's got a cool link (2002) Show shoppingcart after remove last item (1997) [Shownext] (1997) [BoldWords WordList]Any Text[/BoldWords] (2000) Snake Bites (1997) bug in [SendMail] (1997) [OT] Robust order processing (2003) make a beep (2004) WML (2000) WebCatalog Upgrade Pricing? (1997) [WebDNA] PayPal Instant Payment Notification Guide (2009) [WebDNA] [OT] WebDNA Wiki - need grammar check / suggestions (2009) webcat 2.1 (1997)