Are you sure it is empty? Put an ACTIVATE SCREEN command before the ?cInsertCmd line of code. Or better yet, use the command:
DEBUGOUT [cInsertCmd = ] + cInsertCmd
instead of the ? cInsertCmd
Then run with the Debugger open to see what displays in the Debugout window.
>I am testing CA Class With SQL Server 2000. I am using ADO and it is working very well. It inserts, It deletes and It Updates.
>
>I Wrote this code in the BeforeInsert Method for listing the parameters received :
>
>
>PROCEDURE Object.BeforeInsert
>LPARAMETERS cFldState, lForce, cInsertCmd
>
>?cInsertCmd
>
>Return .T.
>
>
>The value of cIsertCmd is empty. Why is this happening ?
>
>TIA
Mark McCasland
Midlothian, TX USA