Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataenvironment
Message
From
27/07/2009 18:24:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01414908
Message ID:
01414910
Views:
57
>How to I change a property of Dataenviroment ?
>
>Dataenviroment.property or thisform.Dataenviroment.property
>
>I am having problemas trying to deal with it

From another thread started by you, it seems that you want to open tables by commands. In general, instead of playing with the DataEnvironment, it might be easier to do all table opening in the Form.Load() event.

All the properties of the DataEnvironment have equivalents in traditional xBASE commands.

DataEnvironment.InitialSelectedAlias is equivalent to putting SELECT (ALIAS) after opening all the tables.

For the "cursors" you open (tables or views):
  • The NAME isn't really required if you open tables through Form.Load().
  • The ALIAS is equivalent to including the ALIAS clause, e.g. USE MYTABLE ALIAS MYTABLE_TEMP
  • The FILTER of course is equivalent to SET FILTER
  • The ORDER is equivalent to the ORDER clause, e.g. USE MYTABLE ORDER INDEX1 (USE MYTABLE followed by SET ORDER TO INDEX1).

    Etc.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform