Help with saveing

Saturday, September 23, 2006 by Hilbillyoct19 | Discussion: DesktopX

I am trying to make a widget that has 3 or more edit boxxes that I want to save the info from.  I am useing object.persiststorage but I want it to store it as an array.  Say "album(artest(song))" but I don't know if or how to acomplish this task.  If anyone could help please do.  And then how could I recall them by using list boxxes.  Thanks alot for your help.

Bichur
Reply #1 Monday, September 25, 2006 11:37 AM
*bump*
Skarny
Reply #2 Saturday, September 30, 2006 4:12 PM
Saving arrays not so easy, Persist storage basically will only store strings. Have a look at the VBScript Join() command. You can join an array into a single string with the elements divided by a delimeter like "|". So a(0) = "hi" and a(1) = "Skarn": a_str = Join(a,"|") would give a_str = "hi|Skarn". Then you can save that to persist storage. To get the string back to an array, use the Split() command, a = Split(a_str,"|"). Sorry there are no carriage returns. Blame Stardock Central.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01