there is no universal sample code as kixtart does not produce the vartype on it's own.
like many others, kixtart does not.
so, you just have to trust on my word on this 
at least vartypes 16,17 and 18 are reported as byte by kix.
_________________________
!download
KiXnet