>>>>>I end up having 2 datasessions in my app but not sure how this occurs. It is causing some problems like "cannot access selected file" How do I get a grip on this and prevent multiple datasessions?
>>>>
>>>>It usually means that your form was not properly released because of the dangling object references.
>>>>
>>>>Check DS after you release the form. You can test with asessions() function (or something along the lines).
>>>
>>>What things would constitute as dangling object references?
>>
>>If the form was supposed to be released, but you still see its DS around, it's a clear indication of the problem.
>>
>>Do you create some objects as part of form property reference?
>
>Actually no.
>in the listbox init I have
>IF USED('&zfile')
>USE IN &zfile
>endi
>USE &LD:&zfile
>
>.rowsource="select emas,doc,noun,model,s_n,rec_1297,p_u_date,loc,tin_doc,drmo_date,remarks,rek from &LD:&ZFILE into curs zecu"
>
>Another problem I notice is the when arrowing thru the listbox, it hesitates dramatically and even has two line items highlighted. ugh.
.rowsource="select emas,doc,noun,model,s_n,rec_1297,p_u_date,"+;
"Loc,tin_doc,drmo_date,remarks,rek"+;
" from (m.ld+':'+m.ZFILE) into curs zecu nofilter"
However don't forget it has to find ld and zfile variables when you a requery.
Cetin