Hi.

Thanks Norman, that now works if I drag a file onto the icon.

I still have one problem.

I am using a RealSQLDatabase file to save the documents created.

But, when I use the code below to save it, it still saves as Document Type: Realbasic 2005 File!?

  Dim dlg as New SaveAsDialog
  Dim f as FolderItem
  dlg.InitialDirectory= Volume(0).Child("Documents")
  dlg.SuggestedFileName="Untitled Database.gbs"
  dlg.Filter = FileTypes.MacBaseDatabase

  f=dlg.ShowModal()
  If f <> Nil then
    //file is to be saved
    Dim db as REALSQLdatabase
    db= New REALSQLdatabase
    db.databaseFile=f
    If db.CreateDatabaseFile then
      //load database...
      OpenDB(f, True)
    else
      MsgBox "Database could not be created"
    end if
  Else
    //user canceled
  End If

Attached is a screenshot of the filetype referenced.



Regards,

Giles Williams,

QLE Internet Services (http://www.qlehosting.com/).
The Open Cluster Project (http://www2.hppc.co.uk/myhppc/theocp/).
NetReal Network Integrated Services (http://netreal.qlehosting.com/).

On 6 Jun 2006, at 20:12, Norman Palardy wrote:


On Jun 06, 2006, at 12:55 PM, Giles Williams wrote:

Hi All.

I'm making a database app, and am using a set extension. I can save files fine, and open them using an open document window. When I click on a file on my desktop, it launches the app, but I can see no way of opening the document then.

The application class has events you get when you do this

Check the OpenDocument event there

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

_______________________________________________
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