I just tried to work with PB variants first time:
Well, as You see I'm trying to avoid nasty inputs like "str$(value)" with the sInp variable. Are variants limited so much or is the type error with sInp simpy caused by a syntax bug in my code?
Code:
Sub dp (sInp As VARIANT) 'JUST HERE IT FAILS! #IF %DEF(%DEBUGMODE) Local szBuf As Asciiz * 1024 szBuf = Variant$(sOut) & $CrLf 'THIS SEEMS TO BE OK?? WriteConsole ConHNDL, szBuf, LEN(szBuf), %NULL, %NULL #ENDIF END SUB
Comment