Hi..may I know how to call a function inside ur main form?
Public Function BinaryToDec(ByV al BinaryValue As String) As Long
Do
BinaryToDec = BinaryToDec + (Strings.Left(B inaryValue, 1) * 2 ^ (Len(BinaryValu e) - 1))
BinaryValue = Mid(BinaryValue , 2)
Loop Until BinaryValue = ""
End Function
if i want to call this function under a button eventhandler,ho w should I call it?
i tried BinaryToDec() but there was an error occured....
Public Function BinaryToDec(ByV al BinaryValue As String) As Long
Do
BinaryToDec = BinaryToDec + (Strings.Left(B inaryValue, 1) * 2 ^ (Len(BinaryValu e) - 1))
BinaryValue = Mid(BinaryValue , 2)
Loop Until BinaryValue = ""
End Function
if i want to call this function under a button eventhandler,ho w should I call it?
i tried BinaryToDec() but there was an error occured....
Comment