>Hi All,
>
>I typically use a DataEnvironment class then drop CursorAdapter classes in it as my Data Tier.
>
>I recently discovered this 'bug'.
>
>Suppose I created a boInvoice (DE) class, and dropped a oCustomer, oInvoiceHeader and oInvoiceDetail (CA) in it.
>
>So, when I do this:
>
>
>oInvoice = NEWOBJECT( 'boInvoice' )
>oInvoice.oInvoiceHeader.CursorFill()
>? oInvoice.oInvoiceHeader.GetFieldValue( "Date" )
>
>
>but if I create an object reference like so:
>
>
>loInvoiceHeader = oInvoice.GetCursorObject( "InvoiceHeader" )
>? loInvoiceHeader.GetFieldValue( "Date" )
>
>
>Any explanations on this? Thanks In Advance.
#1 It's never a good idea to name a field, var, PEM like a build in function
#2 GetCursorObject and GetFieldValue are not VFP native, this looks like some framework. So it's somewhere in the code of this framework. Even the whole idea to handle data through objects looks strange from a VFP POV.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]