如何把vb語言,轉成[email protected]@?

請問,如果有一vb語言如下
Private Function Hex_to_Bin(Hex_Str)
      Bin_Str=""
      For i=1 To Len(Hex_Str)
            hex_str_i=Mid$(Hex_Str,i,1)
            Select Case hex_str_i
                   Case "0"          Bin_Str_i="0000"
                   Case "1"          Bin_Str_i="0001"
                   Case "2"          Bin_Str_i="0010"
                   Case "3"          Bin_Str_i="0011"
                   Case "4"          Bin_Str_i="0100"
                   Case "5"          Bin_Str_i="0101"
                   Case "6"          Bin_Str_i="0110"
                   Case "7"          Bin_Str_i="0111"
                   Case "8"          Bin_Str_i="1000"
                   Case "9"          Bin_Str_i="1001"
                   Case "A"          Bin_Str_i="1010"
                   Case "B"          Bin_Str_i="1011"
                   Case "C"          Bin_Str_i="1100"
                   Case "D"          Bin_Str_i="1101"
                   Case "E"          Bin_Str_i="1110"
                   Case "F"          Bin_Str_i="1111"
                   Case Else:Hex_to_Bin="輸入字串錯誤":Exit Function
          End Select
          Bin_Str=Bin_Str+Bin_Str_i
      Next i
      Hex_to_Bin=Bin_Str
End Function

這是一個16進制轉二進制的程式碼?
但,該如何轉成LabVIEW??
程式碼中的  Exit Function在LabVIEW中,該如何做?
我附上一個我寫的,但,還是有些怪怪的^^"
請大大指教囉~~^^
2004-08-31_041639_hex_to_bin.vi

我修改了您的程式,您參考看看,輸入0~F以外的字串即會顯示"輸入字串錯誤"

hex_to_bin_Exit_Function_LV7.1.vi