General information
Category:
Coding, syntax & commands
>>Here is a code that generates a compiler error:
>>"Unable to find Visual class library ERROR"
>>NEWOBJECT('frmMessageBox', 'base.vcx', '', ThisForm, ;
>>'This barcode is not recognized as a User ID. ' + CHR(13) + ;
>>'Click OK if you want to scan the ID again', 'Error', 2)
>>
>>If I remove CHR(13) then it compiles without the error. What am I missing?
>>
>>Thanks
>
>I guess that trying to pass that string, complete with CR/LF is a bridge too far for the general purpose eparameter1, which isn't specifically a char param.
>
>How about you pass it an non-printing char, say "~" as part of the message string, then let the .Init() of frmMessageBox insert the CHR(13) in place of the/each tilde?
Thanks for the suggestion. I can definetely change my code. But I was just curious, what was wrong.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only