Set BlankNumbers property conditionnaly

SYLV1GSYLV1G Member Posts: 93
Hello

I need to set a value for the BlankNumbers property. This value can change according to conditions.
I know that it is possible to assign a variable to a property and then to set the variable value to modify the property.

I tried to create a variable of subtype option and to put this variable in the BlankNumber Property of the my control but i obtained an error message : Myvaraiable is not an option. The existing options are.....

Has anybody got an idea to solve this problem ?

Thanks in advance for your help

SG

Comments

  • kapamaroukapamarou Member Posts: 1,152
    SYLV1G wrote:
    I know that it is possible to assign a variable to a property and then to set the variable value to modify the property.
    Could you explain this?


    Which version?
    Is this for a report? A form?
    As far as I know you cannot do this. You can do something else.
    Create two textboxes with different options and hide / show respectively.
    Create a Text variable and make it blank by code.

    Or something similar.
  • SYLV1GSYLV1G Member Posts: 93
    Hello

    I am using NAV 5.01 and it was for a report.

    The way i solved the problem :

    I modified the SourceExpr of the concerned controls and i returned '' when i wanted to hide the control or i returned the amount formatted when i wanted to keep it.

    Bye
Sign In or Register to comment.