Took me a while to figure out the problem the StrCat structure is correct.
intcontrol(73, 2, 0, 0, 0) ; GOSUB error handler.
Tails = 'Tails'
Heads = 'Heads'
fName = strcat(Heads, ' or ', Tails, '.', Ext)
clipput(fName)
:Cancel
return
;__________________________________________________________________________________________
:WBERRORHANDLER
Error = LastError()
if Error==2058 ; StrCat: Function syntax error
; Deal with it.
fName = Heads : ' or ' : Tails : '.' : Ext
return
endif
ErrInfo = strcat('Error: #', Error, ': ', wberrortextstring, @crlf, 'Script: ', wberrorhandlerline, @crlf, 'Assignment: ', wberrorhandlerassignment, @crlf, 'File: ', wberrorhandlerfile, @crlf, 'Procedure: ', wberrorinsegment, @crlf, 'Line No. ', wberrorhandlerlinenumber, @crlf)
clipput(ErrInfo)
pause('Error Message on Clipboard', ErrInfo)
exit
This line
fName = Heads : ' or ' : Tails : '.' : Ext
comes up with the right error message.