>>>>>>>>>>Can anyone hint on if the datasession option unties the bind between a grid and it's assoc dbf? I would like to use varying dbf's in this form (grid)
>>>>>>>>>
>>>>>>>>>If you want to change Grid.RecordSource you just reset this property to pick up another source.
>>>>>>
>>>>>>Ed, is this reset in the properties section or in code? Can you give an example?
>>>>>
>>>>>Yes, 'in run-time' means in code.
>>>>>Thisform.Grid.RecordSource=newalias && I assume you use RecordSourceType=1
>>>>>Thisform.Grid.Refresh
>>>>
>>>>Still not happening for some reason, the orig dbf is still showing up.
>>>>Does the code get put in the activate cell area?
>>>
>>>Put this code into some button click event and test it from there.
>>
>>Well I put "thisform.RecordSource=&tmpfil" and I got "variable not found"
>
>If 'tmpfil' is an alias, you should issue
>Thisform.Grid.RecordSource="tmpfil"
>and don't forget to refresh
In my prg I have:
[tmpfil='tmp'+sys(2)
copy to &tmpfil
use &tmpfil
do form bgrid1]
but I get "unknown member grid" error mess.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."