Having oApp do this does not work because oApp exists in the VFP default data session which is DS #1. So all the environment settings are being set in DS 1.
Put all your SET commands in your form baseclass LOAD method. Unless you put additional code in the LOAD of new forms that are based on your form class, you will not need the DODEFAULT()
>I have a form whose data session property is set to Private.
>But cant get Set Exact on to be set.
>I have done the following:
>
>1. Set up oApp.SetDefaultproperty which: Set Exact On
>2. In my Base Form Class , in the LOAD event:-
> oApp.SetDefaults
>
>But the following is happening:
>When my Base Class Runs: it does set exact on
>(I have a Wait Window in the My Base Class Load Event which shows this)
>
>In the Form Itself Load Event I Have:
>DoDefault()
>Wait Window 'Set exact=' + Set('EXACT')
>... and this shows that Set Exact is OFF
>
>It appears that the something has changed the setting between
>the time the Base Class Load code runs and he time the actual form code runs.
>
>Would anybody have any ideas why this is happening ?
>
>Regards,
>
>Gerard
Mark McCasland
Midlothian, TX USA