Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
cXtraDialogs
Change Line Direction of a Shape Sprite
Toggle Button Text
Password Checking
Set Properties of a Flash Sprite
Digital Video Button Control
Volume Behaviour (Buttons)
Find Last Label
XTRA dmmScript for scripting
Toggle ActionsEnabled Property of a Flash Member
 

 

 

FAQ Checking an open database - Valentina

Added on 4/4/2001

 

Compatibilities:

Required Xtras:
Valentina

This item has not yet been rated

Author: Thomas (website)

How can I check if a global contains an open database?

You can find out if a global (or any variable, or property) contains an open database by using the script below.

on testIfDatabase vDB
-- Check if the value is a child of the VDatabase Xtra
if string(vDB) starts "-- Check if this child has a database reference otherwise
-- openDatabase() has probably not been run succesfully
if vDB.getRef() <> 0 then
return TRUE
end if
end if
-- Not an open database
return FALSE
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail