Re: [WebDNA] weekday question

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110740
interpreted = N
texte = --Apple-Mail-E30E7336-A04C-4384-8572-794E1D567633 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Jess, Hi it depends where the text is coming from. WebDNA stores carriage returns a= s hex %0B - but if the text is coded into a template then it depends on the c= harset used. You can find out what character to look for by wrapping the text in [url] ta= gs. - Tom Sent from my iPhone > On 21 Sep 2013, at 13:52, sgbccebu wrote: >=20 > [ConvertChars] > This is the first line > this will be the second line > [/ConvertChars] >=20 > What code would you use in a db to detect the carriage return (above sampl= e),=20 > so that it will be replaced with a

>=20 >=20 > ---database.db-- > from to > \r

> \n

> %02

> SP

> %0B

>=20 >=20 > Many thanks... >=20 > Jess >=20 >=20 >> On Mon, Sep 16, 2013 at 2:33 PM, Terry Wilson wrote:= >> Is there a setting in prefs that let's you say where the week starts? >>=20 >>=20 >> On Sun, 15 Sep 2013 17:27:45 -0300 >> "Francisco A. Hirsch" wrote: >> According to the 6.2 Manual (and http://webdna.us/page.dna?numero=3D32) >> the format %w gives Weekday 0 (Sunday) - 6 (Saturday). >> Yet I get 0 (Saturday)- 6 (Friday) >> [text show=3DT]adate=3D09/24/13[/text] is a [math >> show=3DT]dayofweek=3D[format days_to_date >> %w][math]{[adate]}[/math][/format][/math] >> Am I doing something wrong or is it the manual? >> Francisco--------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to:

Jess,

Hi it depends where the text is coming from. WebDNA stores carriage returns as hex %0B - but if the text is coded into a template then it depends on the charset used.

You can find out what character to look for by wrapping the text in [url] tags.

- Tom




Sent from my iPhone

On 21 Sep 2013, at 13:52, sgbccebu <sgbccebu@gmail.com> wrote:

[ConvertChars]
This is the first line
this will be the second line
[/ConvertChars]

What code would you use in a db to detect the carriage return (above sample),
so that it will be replaced with a <p>


---database.db--
from    to
\r    <p>
\n    <p>
%02    <p>
SP    <p>
%0B    <p>


Many thanks...

Jess


On Mon, Sep 16, 2013 at 2:33 PM, Terry Wilson <terry@terryfic.com> wrote:
Is there a setting in prefs that let's you say where the week starts?


On Sun, 15 Sep 2013 17:27:45 -0300
 "Francisco A. Hirsch" <listas.hirsch@gmail.com> wrote:
 According to the 6.2 Manual (and http://webdna.us/page.dna?numero=32)
the format %w gives Weekday 0 (Sunday) - 6 (Saturday).
 Yet I get 0 (Saturday)- 6 (Friday)
 [text show=T]adate=09/24/13[/text] is a [math
show=T]dayofweek=[format days_to_date
%w][math]{[adate]}[/math][/format][/math]
 Am I doing something wrong or is it the manual?
Francisco---------------------------------------------------------
 This message is sent to you because you are subscribed to
 the mailing list <talk@webdna.us>.
 To unsubscribe, E-mail to: <talk-leave@webdna.us>
 archives: http://mail.webdna.us/list/talk@webdna.us
 Bug Reporting: support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.usukk
--Apple-Mail-E30E7336-A04C-4384-8572-794E1D567633-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] weekday question (Tom Duke 2013)
  2. Re: [WebDNA] weekday question (John Butler 2013)
  3. Re: [WebDNA] weekday question ("Francisco A. Hirsch" 2013)
  4. Re: [WebDNA] weekday question (sgbccebu 2013)
  5. Re: [WebDNA] weekday question ("Terry Wilson" 2013)
  6. Re: [WebDNA] weekday question ("Francisco A. Hirsch" 2013)
  7. Re: [WebDNA] weekday question (Steve Raslevich 2013)
  8. [WebDNA] weekday question ("Francisco A. Hirsch" 2013)
--Apple-Mail-E30E7336-A04C-4384-8572-794E1D567633 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Jess, Hi it depends where the text is coming from. WebDNA stores carriage returns a= s hex %0B - but if the text is coded into a template then it depends on the c= harset used. You can find out what character to look for by wrapping the text in [url] ta= gs. - Tom Sent from my iPhone > On 21 Sep 2013, at 13:52, sgbccebu wrote: >=20 > [convertchars] > This is the first line > this will be the second line > [/ConvertChars] >=20 > What code would you use in a db to detect the carriage return (above sampl= e),=20 > so that it will be replaced with a

>=20 >=20 > ---database.db-- > from to > \r

> \n

> %02

> SP

> %0B

>=20 >=20 > Many thanks... >=20 > Jess >=20 >=20 >> On Mon, Sep 16, 2013 at 2:33 PM, Terry Wilson wrote:= >> Is there a setting in prefs that let's you say where the week starts? >>=20 >>=20 >> On Sun, 15 Sep 2013 17:27:45 -0300 >> "Francisco A. Hirsch" wrote: >> According to the 6.2 Manual (and http://webdna.us/page.dna?numero=3D32) >> the format %w gives Weekday 0 (Sunday) - 6 (Saturday). >> Yet I get 0 (Saturday)- 6 (Friday) >> [text show=3DT]adate=3D09/24/13[/text] is a [math >> show=3DT]dayofweek=3D[format days_to_date >> %w][math]{[adate]}[/math][/format][/math] >> Am I doing something wrong or is it the manual? >> Francisco--------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to:

Jess,

Hi it depends where the text is coming from. WebDNA stores carriage returns as hex %0B - but if the text is coded into a template then it depends on the charset used.

You can find out what character to look for by wrapping the text in [url] tags.

- Tom




Sent from my iPhone

On 21 Sep 2013, at 13:52, sgbccebu <sgbccebu@gmail.com> wrote:

[convertchars]
This is the first line
this will be the second line
[/ConvertChars]

What code would you use in a db to detect the carriage return (above sample),
so that it will be replaced with a <p>


---database.db--
from    to
\r    <p>
\n    <p>
%02    <p>
SP    <p>
%0B    <p>


Many thanks...

Jess


On Mon, Sep 16, 2013 at 2:33 PM, Terry Wilson <terry@terryfic.com> wrote:
Is there a setting in prefs that let's you say where the week starts?


On Sun, 15 Sep 2013 17:27:45 -0300
 "Francisco A. Hirsch" <listas.hirsch@gmail.com> wrote:
 According to the 6.2 Manual (and http://webdna.us/page.dna?numero=32)
the format %w gives Weekday 0 (Sunday) - 6 (Saturday).
 Yet I get 0 (Saturday)- 6 (Friday)
 [text show=T]adate=09/24/13[/text] is a [math
show=T]dayofweek=[format days_to_date
%w][math]{[adate]}[/math][/format][/math]
 Am I doing something wrong or is it the manual?
Francisco---------------------------------------------------------
 This message is sent to you because you are subscribed to
 the mailing list <talk@webdna.us>.
 To unsubscribe, E-mail to: <talk-leave@webdna.us>
 archives: http://mail.webdna.us/list/talk@webdna.us
 Bug Reporting: support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.usukk
--Apple-Mail-E30E7336-A04C-4384-8572-794E1D567633-- Tom Duke

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:

Fun with dates (1997) Spiders (1998) DON'T use old cart file! (1997) WebCat2 - Getting to the browser's username/password data (1997) Price Not Appearing (2000) WebDNA 5.1 is now available! (2003) WCS Newbie question (1997) Showing formatted results in tables (2002) Mauthonly followed by mauthcapture (2002) A little help on e-mail (HELP!!! :-) ) (1998) Almost a there but..bye bye NetCloak (1997) Non-technical messages ... (1997) Re[2]: Adding Text (2000) cookies crumbling (1999) Email Formatting (2001) Nested ListFiles (1998) Summing a field full of numbers ... (1997) RE: [WebDNA] API Integration (2010) PCS Frames (1997) Major Security Hole (1998)