add variable don't show????

TrintTrint Member Posts: 44
edited 2003-08-10 in Navision Attain
currently, this works fine:

CatalogFile.OPEN(CatalogFileName);
Catalog.GET(CatalogCode);
CatalogFile.WRITE( '"' + Catalog.Code +'"' + ',' +
'"' + Catalog.Name +'"' + ',' +
'"' + Catalog."Season Code" + '"');
but, I have to add a variable that will look like this:
CatalogFile.WRITE( '"' + "Program".Code +'"' + ',' +
'"' + Catalog.Code +'"' + ',' +
'"' + Catalog.Name +'"' + ',' +
'"' + Catalog."Season Code" + '"');
When I add "Program.Code" at the first, the file leaves out the program code info and just gives me two quotes and a cama("",) before the "Catalog.Code". How come it won't print it out with the rest of it like it DOES in this one:

IF NOT Salesperson.GET("Program"."Salesperson Code") THEN
CLEAR(Salesperson);

ProgramFile.WRITE(
'"' + "Program".Code +'"' + ',' +
'"' + "Program".Name +'"' + ',' +
'"' + "Program"."ZIP Code" +'"' + ',' +
'"' + "Program".Address +'"' + ',' +
'"' + "Program".City +'"' + ',' +
'"' + "Program".State +'"' + ',' +
'"' + "Program"."ZIP Code" +'"' + ',' +
'"' + FORMAT("Program".TaxRateFood) +'"' + ',' +
'"' + FORMAT("Program".TaxRateNonFood) +'"' + ',' +
'"' + FORMAT("Program"."Ticket Increment")+'"' + ',' +
'"' + FORMAT("Program".Enrollment) +'"' + ',' +
'"' + Salesperson."First Name" + ' ' + Salesperson."Last Name" + '"');

ProgramFile.CLOSE;

Comments

  • lakshmivallurulakshmivalluru Member Posts: 168
    Hi,

    May be you forgot to get the program record ????? like program.get(programcode) something like this !!!!
    LR
Sign In or Register to comment.