how to change 0(zero) to -

hi

i have data in DB which contain 0 (zero) value. how can i change that 0 to - when i display on report. the 0 value will be placed in master detail.

thank's
yudi

Comments

  • edited February 2007
    Hi,

    In your memo, enter this statement:
    [IIF(<DATASET."FIELD"> = 0,'-',<DATASET."FIELD">)]

    here is what it means:
    if (value = 0) then (show "-") else (show value)
    so [IFF(CONDITION, IF TRUE, IF FALSE)]

    hope this answers your question,

    micro
  • edited 1:05PM
    why it's raise error project invoice.exe raised exception class EVarianTypeCastError with message 'could not convert variant of type (string) into type (double)'
  • gordkgordk St.Catherines On. Canada.
    edited 1:05PM
    you probably have the display format for the memo set to numeric.
    if you wish to keep display format then do your mods in the obp event of the band and modify the memos properties and contents from there, and reset the memo's props in it's oap event.
    ;)

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.