Load event of the form is the first event. Cursors are not initialized. Try to put this code in BeforeOpenTables event of the DE.
>Hi Boris,
>
>i've tried your below code at form load event "setall" gives an error but strange its work with true tables :(
>
>
>*form load event code
>Local dbc_path
>Select datadir From pathcont Into Cursor CrsPathcont
>dbc_path=Alltrim(CrsPathcont.datadir) + "\data1.dbc"
>thisform.SetAll("database",dbc_path,"cursor")
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.