Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View: order by parameter
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00127772
Message ID:
00128014
Views:
53
>Hi to all,
>
>do you know if it's possible to create a view with the order by clause setted runtime ? Can I use the ?paramter way like for where expression ? Example :
>
>CREATE VIEW vwTest AS ;
> SELECT field1, field2 FROM myTable ;
> WHERE field1 LIKE ?param1 + "%" ;
> ORDER BY ?orderkey
>
>TIA

Hello Renato,

Just go thoough this.

SET SAFE OFF
lcorder = 'myfield'

CREATE VIEW vwTest AS ;
SELECT field1, field2 FROM myTable ;
WHERE field1 LIKE ?param1 + "%" ;
ORDER BY &lcorder

Basically my idea is to create the runtime.

HTH

Bye
Jayesh
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform