| 2 | Print the specified ticket |
| 3 | |
| 4 | {{{ |
| 5 | int PrintTkt(int nFmt, CTktFlds& tktflds, int verbose = 0); |
| 6 | |
| 7 | int 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 | {{{ |
| 26 | string strMnt = "/mnt/fl1"; |
| 27 | if(IsMounted(strMnt) == 0) |
| 28 | { |
| 29 | DisplayText(0, 0, "Flash is not mounted"); |
| 30 | } |
| 31 | }}} |
| 32 | |
| 33 | {{{ |
| 34 | struct tktfld_struct flds; |
| 35 | memset(&flds, '\0', sizeof(flds)); |
| 36 | |
| 37 | flds.fld[TKT_FLD_GROSS].pFld = szGross; |
| 38 | flds.fld[TKT_FLD_GROSS].nType = TKT_FLD_STR; |
| 39 | |
| 40 | PrintTkt(TKT_STD, &flds); |
| 41 | }}} |
| 42 | |
| 43 | == See Also == |
| 44 | |
| 45 | |