As a newbie experimenting with PB, I was comparing how arrays behaved compared with VB and as part of this wanted to display a message box with each element on a separate line.
Being unsure of the concatenation character I stared off using "&" but got a windows error with the following two lines of code. The error appeared about 2 seconds after code completed, indicating some sort of cleanup routine failed.
sMessage= Ians(0) & $CRLF & Ians(1) & $CRLF & Ians(2) & $CRLF & Ians(3) & $CRLF & Ians(4)
MSGBOX sMessage
Message was:
"Array.exe has encountered a problem and needs to close. We are sorry for the inconvenience" etc etc
If I reduced the incidence of $CRLF thus:
sMessage= Ians(0) & $CRLF & Ians(1) & $CRLF & Ians(2) & $CRLF & Ians(3)
No error.
I changed the "&" to a "+" to see if this changed the result.
It did, It rebooted my PC!!
Scary stuff - What am I doing wrong.
TIA
Ian B
Being unsure of the concatenation character I stared off using "&" but got a windows error with the following two lines of code. The error appeared about 2 seconds after code completed, indicating some sort of cleanup routine failed.
sMessage= Ians(0) & $CRLF & Ians(1) & $CRLF & Ians(2) & $CRLF & Ians(3) & $CRLF & Ians(4)
MSGBOX sMessage
Message was:
"Array.exe has encountered a problem and needs to close. We are sorry for the inconvenience" etc etc
If I reduced the incidence of $CRLF thus:
sMessage= Ians(0) & $CRLF & Ians(1) & $CRLF & Ians(2) & $CRLF & Ians(3)
No error.
I changed the "&" to a "+" to see if this changed the result.
It did, It rebooted my PC!!
Scary stuff - What am I doing wrong.
TIA
Ian B
Comment