Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alias name is already in use
Message
De
18/07/1998 10:13:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00118363
Message ID:
00118972
Vues:
14
>First of all thanks Mark for the response...that got me digging futher.
>
>I think I have found the problem, but I don't know what the solution is. The first time I load the form I create the temporary cursor and create an index which in turn creates an idx file on disk. When I try to load the form again it tries to create the idx file again but it cannot since it already exists and access is not allowed to overwrite it since it is being used....Am I on the right track? maybe?
>
>Can an indexed temporary cursor be used in a form that will allow multiple users?

DexName=sys(3)
index on whatever tag another of (DexName)

This way the index doesn't overlap with any other file. Your problem may be that you use the same alias for the cursor twice, without closing the first . You may use a similar approach:
CursorAlias="C"+sys(3)

create cursor (CursorAlias) ...

Though this shouldn't have happened at all - I've created the same cursor over and over in the same procedure many times. Well, maybe it was in the same datasession. Anyway, the above approach will work, provided you take care of the scope of the DexName and CursorAlias variables - you may be better off using form properties instead.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform