Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session Class and Buffering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00776734
Message ID:
00776735
Vues:
15
>I have the following:
>
>DEFINE CLASS cChangeAcct AS Session
>
>PROCEDURE Init
>   SET MULTILOCKS ON
>ENDPROC
>
>PROCEDURE MakeChange ( tcOld, tcNew)
>
>   * ... verification of parameters
>
>   This.UseTable("TableA")
>
>   * ... processing table
>
>ENDPROC
>
>PROCEDURE UseTable (tcTableName)
>
>   USE (tcTableName) IN 0 SHARED
>   lSuccess = CURSORSETPROP("Buffering", 5, tcTableName)
>   MESSAGEBOX(VARTYPE(lSuccess)+TRANSFORM(CURSORGETPROP("Buffering",tcTableName))+SET("Multilocks"))
>   * Messagebox displays U1ON, suggesting the follwing:
>   *   The CURSORSETPROP command failed
>   *   The buffer mode of the table is 1
>   *   Set MultiLocks is On
>
>ENDPROC
>
>ENDDEF
>
>
>I'm using VFP8, and I'm not seeing the culprit here. Do I have a problem with my CursorSetProp command ?
>
>Thanks,
>
>Tracy

I put a Try Catch around that statement. And it returns "Command can not be used in a Transaction". Ok.. Solved this one.

Tracy
Tracy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform