Setting a Variable

Hi

I have the folowing code in master data


if Copy(<ADOQUERY1."cod_freq">, 1, 1) = '1' then


Set('diaria','X') else
Set('diaria',' ') ;


diaria is a variable that i create in Fr' variables


It may be a simple question , but i need diaria to be 'X' but Set
('diaria','X') returns that X is not a Variable. If the Set is
Set('diaria','1') else
Set('diaria','0') ; Works Ok , Why 'X' doesn't work ??


may be preceded by some symbol ?


best regards
Pedro Faro


Comments

  • edited 3:21AM
    Hi

    I have the folowing code in master data


    if Copy(<ADOQUERY1."cod_freq">, 1, 1) = '1' then


    Set('diaria','X') else
    Set('diaria',' ') ;


    diaria is a variable that i create in Fr' variables


    It may be a simple question , but i need diaria to be 'X' but Set
    ('diaria','X') returns that X is not a Variable. If the Set is
    Set('diaria','1') else
    Set('diaria','0') ; Works Ok , Why 'X' doesn't work ??


    may be preceded by some symbol ?


    best regards
    Pedro Faro

    Hi,

    I don't know why it doesn't work but I know this one does :

    Set( 'diaria', Report.Variables );

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.