Hi,

I am very very new to VB and have not yet learned to use functions and would very much like to learn this..

Lets say for example I have a function like this:

VB Code:
  1. Function HexToString(ByVal sText As String) As String
  2.     Dim saHex() As String, i As Long
  3.     saHex = Split(sText)
  4.     For i = 0 To UBound(saHex)
  5.         HexToString = HexToString & ChrW("&H" & saHex(i))
  6.     Next
  7. End Function

Which are supposed to convert Hex to String, do I just put this randomly in the middle of my code and it will convert all Hex to Strings or..?

For example if I have a textfield where I ask user to enter Hex and another box which shows the converted string, would I then do like Text1.Text = function something..?

Please tell me a little more about functions, thanks alot to all possible repliers! :]