Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Ticket/PrintTkt


Ignore:
Timestamp:
08/26/10 09:01:04 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Ticket/PrintTkt

    v1 v2  
    11= PrintTkt =
     2Print the specified ticket
     3
     4{{{
     5int PrintTkt(int nFmt, CTktFlds& tktflds, int verbose = 0);
     6
     7int PrintTkt(int nFmt, struct tktfld_struct* pFlds, int verbose = 0);
     8}}}
     9
     10== Parameters ==
     11
     12 * nTkt - Ticket format to print: TKT_STD, TKT_ALT, TKT_FPASS, TKT_LOG, TKT_SPEC1, TKT_SPEC2, TKT_SPEC3, TKT_SPEC4, TKT_SPEC5, TKT_SPEC6
     13 * tktflds - Reference to CTktFlds class to fill in ticket variables
     14 * pFlds - Pointer to tktfld_struct structure to fill in ticket variables
     15
     16== Return Value ==
     17
     18 * Returns
     19
     20== Remarks ==
     21
     22
     23== Examples ==
     24
     25{{{
     26string strMnt = "/mnt/fl1";
     27if(IsMounted(strMnt) == 0)
     28{
     29  DisplayText(0, 0, "Flash is not mounted");
     30}
     31}}}
     32
     33{{{
     34struct tktfld_struct flds;
     35memset(&flds, '\0', sizeof(flds));
     36
     37flds.fld[TKT_FLD_GROSS].pFld = szGross;
     38flds.fld[TKT_FLD_GROSS].nType = TKT_FLD_STR;
     39
     40PrintTkt(TKT_STD, &flds);
     41}}}
     42
     43== See Also ==
     44
     45