>Like many Fox developers I am converting my 2.6 apps to VFP 5.0b.
>I have a few small utilities that I would like to adapt to VFP.
>One for instance defines a window and performs a data driven reindex
>routine, listing the tables, tags etc. as it progresses.
>
>Question: Where best to put the code or call the .prg?
>It doesn't lend itself to the object builder I don't believe.
>When I call the .prg from the Init() or the Load() or the
>GotFocus(), it either dosen't display on the form or creates other
>problems.
>
>I would like to have this data displayed on a form so I can add
>other object(buttons etc.) The form is called by a menu item. Where
>to call the .prg?
>
>There may be a very easy solution but none of my text addresses
>this subject or I don't know what to look for.
>
>Thanks. Have a nice day.
>
>Regards,
>
>Paige
Create a form that does this. On the form, put an edit box to display the information then modify your prg to send the info there. The actual code would go in the Click Event of a command button on the form.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer