Categories
Dynamics NAV HOW TO Microsoft

HOW TO show BigText in a message window in C/AL

According to the MSDN documentation in the link BigText Data Type

"cannot be shown in a message window"

This example requires that you create the following variables:

Name DataType Subtype
varBigText BigText

It is true that you cannot insert the BigText in a message
[sourcecode lang=”Cside”]MESSAGE(varBigText);[/sourcecode]

HOW TO show BigText in a message window in C/AL?

You can show the content of the variable easily using the FORMAT Function (Code, Text) to convert the BigText in a String.
[sourcecode lang=”Cside”]MESSAGE(FORMAT(varBigText));[/sourcecode]

Did my HOW TO help you? Leave a reply.