I was looking for the easy solution. and it seems that CBase is the answer.

use it as any of the other functions like mid or len

variable2 = CBase(Variable1, 10, 2)      'for dec to bin
use
2 for binary
8 for octave
10 for decimal
16 for Hexadecimal