Results 1 to 3 of 3

Thread: SaveSetting for textbox array

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Posts
    137

    SaveSetting for textbox array

    I have a textbox array: BetMethod(0-10)

    I want to be able to save the settings of the text in all of them to registry using savesetting. and also to be able to getsetting.

    but how can i save to 1 regisrty key?
    Thanks for all your help here!
    I will do my best to add you to the credits of my new apps.

  2. #2
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: SaveSetting for textbox array

    SaveSetting is limited to simple strings, so you can't specify a REG_MULTI_SZ type value. A workaround is to choose a suitable font for the textboxes and use an unusual string of characters such as [¥§¤‡] (MS Sans Serif) for a delimiter. When you retreive the value use Split(), specifying the the delimiting string.

    Use the Character Map as a reference, ie:
    Alt+0135 = ‡
    Alt+0164 = ¤
    Alt+0165 = ¥

    etc.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Posts
    137

    Re: SaveSetting for textbox array

    each text box is just a number. can use space for the delimiter.
    Thanks for all your help here!
    I will do my best to add you to the credits of my new apps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width