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:
Function HexToString(ByVal sText As String) As String Dim saHex() As String, i As Long saHex = Split(sText) For i = 0 To UBound(saHex) HexToString = HexToString & ChrW("&H" & saHex(i)) Next 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! :]




Reply With Quote