Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with p-views
Message
From
25/09/2004 00:18:11
 
 
To
23/09/2004 20:57:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00945595
Message ID:
00945955
Views:
19
Evelyn,

Let's suppose your customer table has an AreaCode field and we want to create a view to extract customers in a some user-specified area code.

You then create a view for this right?

First, you specify the tables needed (in our case it's only Customer)

Then, in the Fields, let us say we just want to view CustID, CustName.

Then, in the Filter Page, we put something like AreaCode = ?pAreaCode (the question mark right before pAreaCode is where the 'parameterization' occurs - it tells VFP that it should ask for the value)

Then, in the Query menu select View Parameters. Here, add pAreaCode to the list and define it as Character.

Save the view (let's name it vueCustomerPerArea)

To use the view: (OPEN IT LIKE ANY TABLE)
USE vueCustomerPerArea NODATA

pAreaCode = <somevalue>

REQUERY( "vueCustomerPerArea" )

BROWSE
>i have set filter on my grid. and, it's very slow. i know i have to use p-views, but i do not know exactly how to do it.
>
>can anyone guide me pls?
>
>TIA.

Hope to help,

Dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform