none
i want to save data on my small basic program what should i do??? RRS feed

  • Question

  • im creating a basic web browser in small basic. but i couldnt give saving skill to my webbrowser. i want to save history or save bookmarks to my webbrowser....

    sorry `bout bad english
    Wednesday, September 8, 2010 10:46 PM

Answers

  • You can write arrays to files and add items to arrays when user changes page or  adds something to bookmarks like:

    Data["Bookmarks"][BookmarkFolder][1] = "www.smallbasic.com"

    Data["Bookmarks"][BookmarkFolder][2] = "http://social.msdn.microsoft.com/Forums/en-US/smallbasic/"

    Timer.Interval = 10
    Timer.Tick = AddToHistory
    Timer.Resume()

    Sub AddToHistory
      Data["History"][Clock.ElapsedMilliseconds] = URLofwebbrowser
    EndSub


    Sorry My Bad English
    Thursday, September 9, 2010 12:37 PM