Hi
Above error is on the below code . Both are of Code Type
IF PCode[Ctr] = ICode THEN BEGIN
Thanks
*This post is locked for comments
Hi
Above error is on the below code . Both are of Code Type
IF PCode[Ctr] = ICode THEN BEGIN
Thanks
*This post is locked for comments
You are trying to compare a character with Code, either you are missing dimensions for the PCode if you are trying to store it as an array.
Use FORMAT function if you have any specified any dimensions.
IF FORMAT(Pcode[Ctr]) = FORMAT(ICode)
If you index character position like PCode[Ctr] the result will be a char.
So try IF FORMAT(PCode[Ctr]) = ICode THEN BEGIN