On Mon, 22 Sep 2008, Szak�ts Viktor wrote: >> ANNOUNCE GTSYS >> ANNOUNCE HB_GT_SYS >> REQUEST HB_GT_WIN >> REQUEST HB_GT_WVT >> REQUEST HB_GT_STD >> REQUEST HB_GT_GUI >> REQUEST HB_GT_VWT_DEFAULT >> >> Must I replace With follow? > > The above has a few problems: > - REQUEST HB_GT_VWT_DEFAULT is wrong and should be ANNOUNCE.
No it shouldn't. It's correct. REQUEST HB_GT_VWT_DEFAULT also indirectly implied: REQUEST HB_GT_VWT > - ANNOUNCE HB_GT_SYS is wrong and should be ANNOUNCE HB_GTSYS. > - ANNOUNCE GTSYS is not needed. That's correct. I missed it in previous message. > - You can only have one ANNOUNCE per .prg (Clipper compatibility) > - ANNOUNCE/REQUEST cannot be placed anywhere in the .prg code AFAIR. They can be and they do not have effect for code. Compiler does not generate any PCODE for them. It's the matter of readability not technical problem. > It's up to everyone which method he's using in > their own code, but the one I wrote is probably the > "best practice". Except HB_GT_*_DEFAULT usage. > It would be nice if we told this solution for those > asking for a solution to this problem. > Just to repeat: > --- > PROCEDURE HB_GTSYS() > REQUEST HB_GT_GUI > /* Other REQUEST HB_GT_??? lines, like HB_GT_WVT, HB_GT_WIN may follow > */ > RETURN > /* Replace GUI with the default GT name you've choosen (like WVT, WIN). */ > PROCEDURE HB_GT_GUI_DEFAULT() > RETURN > ------ Simpler: PROCEDURE HB_GTSYS() REQUEST HB_GT_GUI_DEFAULT is enough. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour