Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewID in COM components
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00318189
Message ID:
00318825
Vues:
16
>>>I don't know if this has come up before, but the SET REPROCESS TO AUTOMATIC in NewID() probably isn't the greatest idea for COM objects, since it assumes a UI to display the message.
>>
>>Check out Sys(2335, n)
>>
>>BOb
>
> OK, so now you're not left wondering why your component locked up. Hmm...I wonder if this get's set in MM when you compile as COM. Probably should be.

No... if you read the docs you will see that this will cause a waitstate UI to raise an error... Non-wait state UI is ignored... I think in this case you would have a non-wait state UI.

If it is a wait state UI you could add this check to the error message of the data behavior class so that it can be delt with.

Of course, an easier solution might be using GUID's for Primary Key values.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform