>Thanks Naomi!
>
>After reading the Thread #
974847 I've made some tests and found that this
>problem(mine especifically) could be simply solved by the following method:
>1. Set de 'AutoOpenTables' property of 'Dataenvironment' to .F.
>
>2. Adding the following code to the 'Init' method of 'Dataenvironment'
>
>WITH this
>
> .AddObject('oCursor', 'Cursor')
>
> .oDataFiles = '<path of database>'
>
> .oCursor.Database = oDataFiles + '<database name>'
> .oCursor.CursorSource = '<table name>'
> .oCursor.Alias = '<alias>'
>
> .OpenTables
>
>ENDWITH
>
>
>3. I've found that for objects like Grid I have to set columns 'ControlSource' property
>from the 'Init' method of the form. If I try to set that at design time I got a runtime error
>saying that the 'alias is not found'. The 'RecordSource' property of the Grid can
>be set at design time. For objects like TextBox, the 'ControlSource' can be set at
>design time.
>
>I didn't done tests with other type of objects.
>
>>Tony,
>>
>>Check
Re: Generic in BeforeOpenTables in Data Environment Thread #
974847 Message #
975156 and the whole thread.
>
There is a form's property that makes late data binding. Try to set this property to .f. and to .t. in the Init. (BindControls?)
If it's not broken, fix it until it is.
My Blog