AL icon indicating copy to clipboard operation
AL copied to clipboard

Passing Labels for Text parameter

Open nmahate opened this issue 8 years ago • 0 comments

In C/AL you can pass a TextConst to a function that takes a Text parameter. In AL TextConst are replaced by Labels.

I've declared a label as: microsoftteams-image which I'm trying to pass into this function that takes a text parameter: microsoftteams-image 1

It doesnt like it, returning the following error: microsoftteams-image 2

If I pass in 'Test Connection' directly in the function call as a text, it doesn't complain. I'll have to declare a text variable and assign to it. Or use...

TempFile.Write(Format(TestConnectionTxt));

Looks like an issue with handling labels as texts

nmahate avatar Feb 06 '18 13:02 nmahate