Hi,
I am creating a small project/program that will have only one purpose, to print a one-page report. As follows:
1. The program will receive a parameter, order number.
2. Based on the received order number, the program will connect to the SQL Server database, run SQL Select (get the record joined with a couple of other records)
3. Print one-page report of this order.
I am thinking of doing the entire code in the MAIN.PRG, where the parameter will be received. Another approach is to create a class instantiated in the MAIN.PRG and do the code in this class.
My question is, are there any advantages of coding in the class vs. right in the MAIN.PRG?
Note that once the program runs it should close immediately. So I won't even have READ EVENTS.
TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham