Refer to the LceGetMessage 6.36.1 VB Example .