AD parameter (behaviour issue)

Hi,

I know that AD is field/variable specific. But when I code following and execute on MF the o/p gets displayed in RED color (though AD=R is right justified, not sure if it applies to text as well. Seems NO from the output). Something happens at Natural back to change the default color?

WRITE 30X 'WELCOME TO NATURAL' (AD=R)
END

Also if AD=R doesn’t applies to the text within WRITE/DISPLAY, then shouldn’t it be a syntax error as it differ its function.

Hi Friends,

Will appreciate your thoughts on this. or is this a bug/problem with Natural?

Hi Ats,

I think it makes not much sense to right or left justify a constant. But I agree it can confuse and the doc is not consistent. :?

Perhaps it is a reminiscence of an older Natural version that this was accepted as colour attribute (and still is). :idea:

Following work all the same:

WRITE 'WELCOME1' (AD=R)
/ 'WELCOME2' (RE)      
/ 'WELCOME3' (CD=RE)   
END

Thanks Mogens!!