Topic: Populate a TableGrid using script

I'm totally new to MVD.  So far I really love it smile

I'm using Script code I found on this forum so that when I open Form2 it hides Form1.  I plan  to do that for the future forms that I create.  The code works fine.  However there is a TableGrid on the second form and when it opens there is no data in it.  So it looks like I don't have any entries in my table when I really do.  They're just not showing up in the TableGrid.

When I use the button on Form1 to open Form2, I have the ACTION property set to NO ACTION.  The button is using the Script code to open Form2 and Hide Form1.

I'm wondering if there is a Script code that would be used to populate the TableGrid?

I really don't know Pascal yet (it's on my to-learn list)

Speaking of learning does anyone know of a tutorial that would help me to learn MVD scripting?

Thanks for your help
Frank

Re: Populate a TableGrid using script

When you open form using script, you should call method dbUpdate for the TableGrid on this form.

Form2.TableGrid1.dbUpdate;
Dmitry.

Re: Populate a TableGrid using script

Thanks Dmitry, it solved my problem and works perfectly.  I figured the solution would be pretty simple but because I'm so new to MVD scripting I didn't know where to look.

Do you have any recommendations on what type of tutorial I might look for to help me with learning scripting?

MVD so far has been perfect for the programming that I want to do.

Thanks again for your help.
Frank

Re: Populate a TableGrid using script

Here you can find some materials
http://myvisualdatabase.com/forum/viewtopic.php?id=2277


Also you can study examples
http://myvisualdatabase.com/forum/viewforum.php?id=10

Dmitry.

Re: Populate a TableGrid using script

Thanks, I appreciate the help..
Frank