Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debug this SQL statement...
Message
From
04/04/1998 01:59:09
Bob Thickens
Empire Medical Review Services, Inc
Mequon, Wisconsin, United States
 
 
To
03/04/1998 00:37:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00089155
Message ID:
00089522
Views:
26
>Tell me whu this VFP code does not work:
>
>select (this.Field_List);
> from (this.table_name);
> order by (this.Order_By);
> into array (this.gaData)
>
>
>So therefore I had to go this route to get it to work:
>
>cField_List=this.field_list
>cOrder_By=this.order_by
>
>select &cField_List;
> from (this.table_name);
> order by &cOrder_By;
> into array this.gaData
>
>
>SQL doesn't seem to like (this.whatever)?

when the sql engine runs you lose the scope of the current class so sql can not see the properties. So this.anything does not work. Locals have enough persistance to be seen in the sql execution. hth b
Previous
Reply
Map
View

Click here to load this message in the networking platform