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:49PM
    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:49PM
    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:49PM
    great!!!

    thank you very much ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.