Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is the Table Open?
Message
De
13/04/2000 12:40:31
 
 
À
13/04/2000 10:48:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00359251
Message ID:
00359350
Vues:
11
>I think I understand what you are saying, so wouldn't the following determine wether or not the view is open?
>
>if used("viewname")
> if juststem(cursorgetprop("database", "viewname")) = "source"
> wait window "source!viewname is open" nowait
> else
> wait window "viewname is from a different database" nowait
> endif
>else
> use source!viewname in 0
>endif

This will work. cursorgetprop will return the name of the database of the currently open view, not rather a view (as I thought) existed as part of the database.

"There's always more than one way to do things!"

Thanks for your patience, Neil!
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform