gettingstarted
[Top] [All Lists]

Loading Data

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Loading Data
From: Brian Heibert <brian at heibertservices dot com>
Date: Fri, 29 Apr 2005 19:59:19 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
I have this in my settings window open event:
  Dim f as folderitem
  Dim t as textinputstream
  f=preferencesfolder.child("InternetPal Settings")
  if f <> Nil then
    t = f.OpenAsTextFile
    t.readline //settingsWIN.homepage.text
    t.readline //settingsWIN.welcomespeech.text
    t.close
  end if
  SettingsWIN.close

And this in the Save button in my settings window:
  Dim f as folderitem
  Dim t as textoutputstream
  f=preferencesfolder.child("InternetPal Settings")
  if f <> Nil then
    t = f.CreateTextFile
    t.writeline settingsWIN.homepage.text
    t.writeline settingsWIN.welcomespeech.text
    t.close
  end if
  SettingsWIN.close

While it does save the file
I am having trouble loading the data and putting it in the proper edit
fields and then using the data like
webkit1.loadurl homepage data goes here

Brian

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>