Crashing bug setting an array value to blank

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52314
interpreted = N
texte = When I set an array value to a blank value, it crashes WebDNA or returns unpredictable garbage from a previously loaded page. Example code: [arrayset name=aOptions&dim=8,2][/arrayset] [arrayset name=aOptions](1,1)=7&(1,2)=19.5[/arrayset] [arrayset name=aOptions](2,1)=1&(2,2)=0[/arrayset] [arrayset name=aOptions](3,1)=&(3,2)=20[/arrayset]

[loop start=1&end=8] &ordOptID[index]=[aOptions([index],1)] &ordOptValue[index]=[aOptions([index],2)]
[/loop]
Note that index (3,1) is set to a blank value. If this is set to a non-blank value, it works fine. My workaround for now is to test the value for blank before setting it. WebDNA 5.0, OSX - brian -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Crashing bug setting an array value to blank ( "Scott Anderson" 2003)
  2. Re: Crashing bug setting an array value to blank ( Brian Fries 2003)
  3. Crashing bug setting an array value to blank ( Brian Fries 2003)
When I set an array value to a blank value, it crashes WebDNA or returns unpredictable garbage from a previously loaded page. Example code: [arrayset name=aOptions&dim=8,2][/arrayset] [arrayset name=aOptions](1,1)=7&(1,2)=19.5[/arrayset] [arrayset name=aOptions](2,1)=1&(2,2)=0[/arrayset] [arrayset name=aOptions](3,1)=&(3,2)=20[/arrayset]

[loop start=1&end=8] &ordOptID[index]=[aOptions([index],1)] &ordOptValue[index]=[aOptions([index],2)]
[/loop]
Note that index (3,1) is set to a blank value. If this is set to a non-blank value, it works fine. My workaround for now is to test the value for blank before setting it. WebDNA 5.0, OSX - brian -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- 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://webdna.smithmicro.com/ Brian Fries

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:

[isfile] ? (1997) Apache/WebDNA (2002) Math, Multiple Equasions and Show/Hide (1998) RE: Any limit to [include] (1997) Cut off from the list and can't get an answer to the confused re:QTY price updating question (1998) HomePage Caution (1997) [OT] Command Line Change Name (2004) Navigator 4.01 (1997) Trigger time setting (2002) WebDNA Solutions ... sorry! (1997) minimalist shopping cart. (1997) WebCat-based Chat (2000) WebCatalog not recognizing ShoppingCarts folder (2000) [MATH] and Dates (1998) Help formatting search results w/ table (1997) triggers have stopped once again (2002) RE: Formulas.db + Users.db (1997) Fun with Dates - finally resolved but.... (1997) [WebDNA] Cheers (2008) FREE Stuff .. (2003)