I guess many Developers might have had faced this Issue, Whenever we used to compare a Text variable in CAL Coding something like –
We do face Issues like System is not giving Error even CalTextVariable contains a Blank value. Majority times this Issues comes when there is an Integration between NAV and some .NET Portals. Reason behind this issue is, A NULL value is never considered as a Blank value OR even you can say the White Spaces. So this Line of Code is never a Full Proof solution to handle these cases.
But Instead of the above Line of Code If we just Introduce a .Net Variable and write below line of Code then this turns out to be Full Proof Solution.
This Piece of Code will handle each Probability that might ever we skip while Coding.
DotNetStringVariable – System.String.’mscorlib, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089′
CalTextVariable – CAL Text Variable.