[AS] Close database not working for me

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Dec 12 09:42:09 CST 2004


On 12/12/04 7:21 AM, "M Young" <m.young at mac.com> wrote:

hi Michael,

I think this is question to Valentina list but not to vstudio.

Please check examples of VAPP. They show create/close/open.
Run and check that examples work for you.

>  AppleScript 
> 
> Create() 
> 
> tell application "Valentina Carbon"
>     close database "Macintosh HD:Customers"
> end tell 
> 
> ----------------------------------------------------------------------------
> on Create() 
>     tell application "Valentina Carbon"
>         activate 
>         set theDB to make new database with data file "Macintosh HD:Customers"
>         set Customer to make new base object with properties {name:"Customer"}
> at end of theDB 
>     end tell 
> end Create 
> 
> *************************************************************
> 
> Event Log 
> tell application "Valentina Carbon"
>     activate 
>         current application
>     activate 
>     make new database with data file "Macintosh HD:Customers"
>         database "Customers"
>     make new base object with properties {name:"Customer"} at end of database
> "Customers" 
>         base object "Customer" of database "Customers"
>     close database "Macintosh HD:Customers"
>         "Valentina Carbon got an error: database \"Macintosh HD:Customers\"
> doesn't understand the close message."
> 
> *************************************************************
> 
> Database "Customers" is created in the correct location, however close
> database fails. What am I doing wrong?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina mailing list