Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Given datasession howto know a cursor exists
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01007644
Message ID:
01008026
Vues:
19
Thanks Hugo for pointing me to the Aused function which is very handy.

>>>Hi all;
>>>
>>>I want to know if a given cursor in a given datasession exists. What is the optimal/fastest way to do this in code?
>>>
>>>TIA
>>
>>You can use AUSED(ArrayName [, nDataSessionNumber [, cTableName]]) and then search in the array (if you did not pass cTableName)
>>
>>[update]
>>Well, I guess you will always pass cTableName, silly me
>
>Something like:
>
>
>? inUSe('c:\vfp\mytable.dbf', 2)
>
>function inUse
>lparameters tcTableName, tnDS
>local laInfo(1)
>
>return aused(laInfo, tnDS, tcTableName) > 0
>
Zakaria al Azhar
My blog on Actuaris.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform