Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA Date Field returns VARTYPE of DateTime
Message
De
23/01/2023 22:01:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
CA Date Field returns VARTYPE of DateTime
Divers
Thread ID:
01685899
Message ID:
01685899
Vues:
40
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" )    && GetFieldValue is one of my methods - this returns a certain date value
but if I create an object reference like so:
loInvoiceHeader = oInvoice.GetCursorObject( "InvoiceHeader" )    && method return object reference of oInvoiceHeader
? loInvoiceHeader.GetFieldValue( "Date" )                 && this returns a DateTime value!!!
Any explanations on this? Thanks In Advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform