Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class reference being treated as Table.Field
Message
De
14/08/1998 06:06:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00126691
Message ID:
00126827
Vues:
26
>When executing the following line, I get an 'Alias "OLICENSERCD" is not found' error. It's treating the container hierarchy as if it were a reference to a table. It doesn't happen for the properties that just have a THIS. reference. Also, when I place the cursor over the this.oLicenseRcd.Orig_Lic reference in the Debug window the correct value is displayed.
>
>update tls_License set ;
> SERVICECLASSID = this.ServiceClassID, ;
> EFFECTIVEDT = dtot(this.oLicenseRcd.Orig_Lic), ;
> NOTES = alltrim(this.oLicenseRcd.Comment), ;
> RECEIVEDDT = dtot(this.oLicenseRcd.Orig_Lic) ;
> where LICENSEID = this.LicenseID
>
>Any help appreciated...
Ahh, well you included the code and showed it was a matter of "update SQL". Unfortunately update SQL parses that way. You better assign those values to local vars and use them instead.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform