>Hi Mike,
>
>>VFP has datasessions, so IMO that means we deviate from the standard approach enough to deal with that idiosyncracy, not re-engineer the pattern.
>
>You must be carefull using the SET DATASESSION command, remember what the helps says
>
>"SET DATASESSION typically is used to debug forms. Care should be taken when issuing this command when a form is active, because tables in non-current datasessions are not accessible."
>
>I remember when long time ago I tried to use this command, and my grids and other controls (was it the combobox?) went blank upon calling it, I do not know if that still happens (from the help it seems to still be true) for I abandoned the use of this command
If your grid happens to try to refresh while your code is running in another DS, that may happen - it wouldn't be able to find its recordsource. But then you can always bracket the code with lockscreen, and avoid refreshing meanwhile.