Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class reference being treated as Table.Field
Message
From
14/08/1998 06:06:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00126691
Message ID:
00126827
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform