Simple ActiveX Dll Example 'Entered value is Numeric or not.
Simple ActiveX Dll Example 'Entered value is Numeric or not.
API Declarations
JUST FOLLOW THE STEPS.
Rate Simple ActiveX Dll Example 'Entered value is Numeric or not.
(1(1 Vote))
STEP 1
create an ActiveX DLL Project from File---> New
step 2
click on Project menu and select project properties
Project----> project properties
and in project name type " isNumber" and press ok.
step 3
click on module and rename class1 as MyNum
step 4
paste following code in the module
Public Function ChKnum(numb As String) As String
ChKnum = IsNumeric(numb)
End Function
step 5
click on
File---->make isNumber.dll...
and click ok
step 6
create an Standard Exe Project from File---> New
step 7
click on Project menu and select References
Project----> references
step 8
select isNumber from the list and press ok.
step 9
place a command button on the form and place the following code.
Private Sub Command1_Click()
Dim x As New MyNum
Dim inpt As String
inpt = InputBox("Enter your Value to check for Numeric or Non-Numeric")
MsgBox x.ChKnum(inpt)
End Sub
step 10
press f5 and run the program.
getting results then you created a ActiveX dll sucessfully.
step 11
if any quaries please mail to [email protected].
Simple ActiveX Dll Example 'Entered value is Numeric or not. Comments
No comments yet — be the first to post one!
Post a Comment