Re: index code

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63311
interpreted = N
texte = Are you wanting these index values assigned randomly or sequentially? Random is easier to generate (just pick two random characters from the list of valid characters), but will potentially take multiple attempts to find a unique value, especially when many of the values have already been used. Sequential assignment makes it easier to find a unique value - just find the highest current value then generate the next value sequentially - but the generation of the next value is trickier (see [listchars] and [findstring] if you're using WebDNA version 6 - they will be helpful here). Another significant consideration is that by default WebDNA's searches are not case sensitive, so values of "aa", "Aa", "aA" and "AA" are all seen as the same value. You will need to make sure to specify that the index field is case sensitive (fieldnamecase=T) in every search. - Brian On Oct 28, 2005, at 3:49 PM, Christophe Billiottet wrote: > Good evening to you all! we must index a database using no less and > no more than two letters/numbers. To do this, each letter/number > must be in [a-z][A-Z][0-9] range. For instance, a record will be > indexed 'c9' while another one will be 'Ht' or 'zs'. > > This gives 3844 possibilities (26+26+10)*(26+26+10) > > Does anyone has an idea to automatically create such an index? each > time a record is added, a new unique two letters code index would > be added. > > chris > Brian Fries BrainScan Software ------------------------------------------------------------- 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: index code ( Chris 2005)
  2. Re: index code ( Brian Fries 2005)
  3. index code ( Chris 2005)
Are you wanting these index values assigned randomly or sequentially? Random is easier to generate (just pick two random characters from the list of valid characters), but will potentially take multiple attempts to find a unique value, especially when many of the values have already been used. Sequential assignment makes it easier to find a unique value - just find the highest current value then generate the next value sequentially - but the generation of the next value is trickier (see [listchars] and [findstring] if you're using WebDNA version 6 - they will be helpful here). Another significant consideration is that by default WebDNA's searches are not case sensitive, so values of "aa", "Aa", "aA" and "AA" are all seen as the same value. You will need to make sure to specify that the index field is case sensitive (fieldnamecase=T) in every search. - Brian On Oct 28, 2005, at 3:49 PM, Christophe Billiottet wrote: > Good evening to you all! we must index a database using no less and > no more than two letters/numbers. To do this, each letter/number > must be in [a-z][A-Z][0-9] range. For instance, a record will be > indexed 'c9' while another one will be 'Ht' or 'zs'. > > This gives 3844 possibilities (26+26+10)*(26+26+10) > > Does anyone has an idea to automatically create such an index? each > time a record is added, a new unique two letters code index would > be added. > > chris > Brian Fries BrainScan Software ------------------------------------------------------------- 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:

Removing Returns (2001) Any news on WebDNA on Intel OSX? (2006) How to verify email address (1997) WCS Newbie question (1997) Secure Server (1997) Error handling for accountNum (1997) New Plug-in and Type 11 errors (1997) Help! WebCat2 bug (1997) WebMerchant and Mac Auth Hub Help Please (1999) Shopping Cart Page (1997) WebTen and WebCat (1997) Mac: LModelDirector bug fix (1997) Error: Too many nested [xxx] contexts (1997) Location of Webcat site in folder hierarchy (1997) [ConvertChars] problem (1997) OT - AppleScript Request (2004) Banners and sort of random display (1997) PCS Customer submissions ? (1997) delete a file? (1998) multi-paragraph fields (1997)