itFlash
sorry, when asking about prg, i meant generally when you program your applications - so you dont repeat code.
Do you have one prg per grid?
Sorry, I misunderstood. I have a few criteria(s?), when it coes to class.
[ol][li]If the object in question will be re-used more then once (which I believe in your case it will), then I consider a class.[/li]
[li]If the class will remain constant (ie: a locate record type, being used on all forms). The I consider a visual class, since all I have to do is send some paramaters to the init to determine the ALIAS() and the value to locate.[/li]
[li]If the class will change drastically, from one use to another, I have two choices.
[ul][li]DEFINE the class programmatically multiple time in the main program, changing the functions as required.[/li]
[li]Or create an actual object (no class) everytime I need it. That is the last resort.[/li][/ul][ol]
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.