Hi,
You can create a cursor.
CREATE CURSOR mytmp (field1 C(1), field2 I, field3 L, field4 D)
THISFORM.mygrid.recordsourcetype = 1
THISFORM.mygrid.recordsource = "mytmp"
HTH
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...