Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining maximum number of workareas
Message
De
16/10/2002 17:51:04
 
 
À
16/10/2002 17:35:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00711750
Message ID:
00712041
Vues:
10
Steve,

No. Actually practical. I didn't know about the aused() function, which Sergey and others told me about. I had written a function that used a for loop - for i = 1 to 255, to check to see if a table was open in the work area, and then close it, except if it was in a list of aliases to keep open. But the thing is that I have some older systems that use this and similar functions, where I'm not sure if 255 is the highest number work area that can be specified - in fact in my tests today on vfp6 - the highest work area # you can specify is 32767, beyond that you get table number is invalid.

I wanted to be able to change my existing functions to use a maxvalue number, rather than having to rewrite the function(s) to utilize aused(), and also, I'm not sure in what version of foxpro aused() was introduced. Actually, I guess what would help the most is to know the max # of work areas per foxpro version or per operating system, if that has any role.



>David,
>
>Are you being hypothetical here? USE mytable IN 0 is a more flexible approach.
>
>>Thanks. Yes I know of that one, but if say:
>>
>>select 255
>>use mytable
>>
>>Then select(1) will return 254, when really I want 255, or whatever the max value really is. So, it sounds like what I'm looking for doesn't exist.
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform