>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)