> >
> >
> > Dear Ken,
> >
> > Can you help me to verify my coding, please refer to the attachment;
> >
> >
http://www.foxite.com/uploads/9845dff4-f0df-4f7a-b08f-5b0a475e761c.zip> >
> > i need your advise.
> >
> > Thanks.
> >
> > Regards,
> >
> > Stewart Chew
>
> Stewart,
>
> The first thing I note is your GetNewKey() function. You are using VFP 9, so just make your key fields autoinc fields. Let VFP handle the new key assignment for you. I also note that you do not unlock the record in that function. If you lock a record or table, you MUST unlock it, or other users will never be able to add a new record.
>
> In your CmdGrid.PRG, you are programmatically creating a form and a button class. Why not just build the form and class visually and then run them? It would be a lot easier to maintain. They call it
Visual FoxPro for a reason.
>
> As to your forms, I cannot open them without your skin classes.
>
>
> Ken
> You shall know the truth - and the truth shall set you free. (John 8:33)
Dear Ken,
Below attachment is my skin classes.
http://www.foxite.com/uploads/16613d09-ad81-45f1-be28-abeb9395241f.zipRegards,
Stewart Chew