GetChars and feature request

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41107
interpreted = N
texte = Got a quick question about the [getChars] context.The following code has some interesting results.[text]foo=12345[/text] [getChars start=2][foo][/getChars]Returns: 2345 as it should[text]foo=0[/text] [getChars start=2][foo][/getChars]Returns: 0 instead of an empty string or null.I'm not saying it's bug, just not documented that it will behave this way, well for that matter it's not documented the way I assumed it would work either and you know what they say about assumptions.My apologies if this has been hashed out on the list already, I tried the archives to see if there was anything, but didn't have any luck.As a side note and I'm sure this has been requested before, but an [ignoreWhiteSpace] tag would be might handy so we can get away from using a comment context to achieve this effect.For example: Start [ignoreWhiteSpace] several lines of webdna code with line breaks after each. [/ignoreWhiteSpace] EndWould actually output the following code: Start EndOr something along these lines.Thanks,Jason ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. GetChars and feature request (Jason Tyler 2002)
Got a quick question about the [getchars] context.The following code has some interesting results.[text]foo=12345[/text] [getChars start=2][foo][/getChars]Returns: 2345 as it should[text]foo=0[/text] [getChars start=2][foo][/getChars]Returns: 0 instead of an empty string or null.I'm not saying it's bug, just not documented that it will behave this way, well for that matter it's not documented the way I assumed it would work either and you know what they say about assumptions.My apologies if this has been hashed out on the list already, I tried the archives to see if there was anything, but didn't have any luck.As a side note and I'm sure this has been requested before, but an [ignoreWhiteSpace] tag would be might handy so we can get away from using a comment context to achieve this effect.For example: Start [ignoreWhiteSpace] several lines of webdna code with line breaks after each. [/ignoreWhiteSpace] EndWould actually output the following code: Start EndOr something along these lines.Thanks,Jason ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Jason Tyler

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:

Chat Area (2000) How old am I? (2004) database paths/names, and a typo (1997) [WebDNA] Windows Installation (2019) WebCat2b15MacPlugin - showing [math] (1997) Date Time Oddness (1999) math a various prices (1997) [WebDNA] V8.6 FCGI (2018) Bug Report, maybe (1997) mysql errors (2005) WebCat2.0 acgi vs plugin (1997) Bug Report, maybe (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [OT] Getting a domain listening on port 443 and port80? (2003) Credit card processing - UK (1997) international time (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Web Developer Product Awards (1997) Trigger date/month/year setting question (2002) Digest for 09-30-97 (1997)