RBNUBE,

I guess I'm missing something here;

Here's what I'm doing;

The user selects the menu item Open
selects the file
the menu handler does it's thing +
Static userOpened As Boolean
userOpened=True

OpenUpdate(method)
    OpenUpdate
      if userOpened=True
      UpdateTextFields (,etc)

RESULTS;
The file is brought in and nothing else happens. Checking, userOpened=false.

Here's the code from the Menu Handler;
  Static userOpened As Boolean
  Dim f As FolderItem
  Dim w As TextWindow

  #If TargetWin32 then //Windows only
    f=GetOpenFolderItem("text;rtf") //displays open-file dialog
  #else //Linux and Macintosh
    f=GetOpenFolderItem("text") //displays open file-dialog
  #endif
  If f <> Nil then //the user clicked Open

    ClearEverything // start with a blank field

    w=New TextWindow //create new instance of TextWindow
f.OpenStyledEditField w.TextField // this places the text in "TextField"
    w.Document=f //assign f to document property of TextWindow
    w.title=f.Name //assign name of f to Title property of w

    userOpened=True
    OpenUpdate
  End if

On Aug 21, 2006, at 8:22 PM, RBNUBE wrote:

Since someone is opening a file, the method of creation is known.

Create a Boolean property, userOpened as Boolean.

Create a method that houses your parsing code.

The user presses a button, selects a file, userOpened is set to True and the method is called. The method checks the status of userOpened to decide how
to proceed.

HTH

Robert Poland
[EMAIL PROTECTED]



_______________________________________________
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>

Reply via email to