Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment
Message
From
05/12/1997 13:25:12
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
 
To
05/12/1997 10:32:48
Jeff Tucker
Mackinac Center For Public Policy
Midland, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00064017
Message ID:
00064072
Views:
25
>
>I can try the DBUSED() right away.
>
>My views are in the database. They are not cursors. I was not sure if the fact that the grids were on separate pages on a pageframe would make a difference in their ability to reference a view in the form. For example can the following code be placed any where in the form as long as vTotalGrid is a view in the form's DataEnvironment?
>results = requery("vTotalGrid")
>OR do I have to say something like ("Thisform.vTotalGrid")
>
>I am on a steep learning curve with foxpro, and I am not sure what you mean by DS, or even how I would create a login screen with the default DS.
>
>Thanks,
>Jeff

Hi Jeff,
Sorry about the lingo. DS = DataSession. A form can use either a private or the default DataSession. Default DataSessionID = 0 and forms have DataSessionIDs > 0. I use private DS for most forms and Default for most system functions. (most = there are exceptions to every rule)

A grid is a window to a view (no pun intended) if it is defined in the DBC. Check your DataEnvironment and look at the Alias propery and make sure it is the same as what you use in the grid. You don't reference the view as an object, unless you are reading/writing properties.

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Reply
Map
View

Click here to load this message in the networking platform