General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only