wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Ticket/PrintTkt

Version 2 (modified by Don Wilson, 14 years ago) ( diff )

--

PrintTkt

Print the specified ticket

int PrintTkt(int nFmt, CTktFlds& tktflds, int verbose = 0);

int PrintTkt(int nFmt, struct tktfld_struct* pFlds, int verbose = 0);

Parameters

  • 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
  • tktflds - Reference to CTktFlds class to fill in ticket variables
  • pFlds - Pointer to tktfld_struct structure to fill in ticket variables

Return Value

  • Returns

Remarks

Examples

string strMnt = "/mnt/fl1";
if(IsMounted(strMnt) == 0)
{
  DisplayText(0, 0, "Flash is not mounted");
}
struct tktfld_struct flds;
memset(&flds, '\0', sizeof(flds));

flds.fld[TKT_FLD_GROSS].pFld = szGross;
flds.fld[TKT_FLD_GROSS].nType = TKT_FLD_STR;

PrintTkt(TKT_STD, &flds);

See Also

Note: See TracWiki for help on using the wiki.