Help me... simple script question

Hi... first of all I'm sorry for my English... I'm Italian

This is my priblem:

I've a in a Memo [LINE#] macro

I would like it to be (I wrote C++ code)
if ([ReportPilotiQuery."NA"] == 1) value = "NA";
else value = [LINE#];

"NA" is an integer field of my database

Can you hel me?? thank a lot, bye bye

Comments

  • edited 9:54AM
    eh..not very clear..
    Can you explain what you have in your Datbase & what you want on the report ?
    (with a real example)
    sorry for my english too..
  • edited 9:54AM
    Hi!

    There are at least 2 ways to achieve what You want:

    1., write this code to the text section of the memo object :
    [IF(ReportPilotiQuery."NA"=1,ReportPilotiQuery."NA",LINE#)] or

    2., write the following code to the code section of the memo object:

    IF ReportPilotiQuery."NA"=1 THEN MEMO:='[ReportPilotiQuery."NA"]'
    ELSE MEMO:='[LINE#]';

    Regards:Alex



  • edited 9:54AM
    great!!!

    thank you very much ;)

Leave a Comment