VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Simple ActiveX Dll Example 'Entered value is Numeric or not.

by Thota Satish Kumar (1 Submission)
Category: OLE/COM/DCOM/Active-X
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 2nd November 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

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.



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].


Download this snippet    Add to My Saved Code

Simple ActiveX Dll Example 'Entered value is Numeric or not. Comments

No comments have been posted about Simple ActiveX Dll Example 'Entered value is Numeric or not.. Why not be the first to post a comment about Simple ActiveX Dll Example 'Entered value is Numeric or not..

Post your comment

Subject:
Message:
0/1000 characters