|
|
|
Click here to copy the following block |
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As _ Any, source As Any, ByVal numBytes As Long)
Function MKI(value As Integer) As String MKI = Space$(2) CopyMemory ByVal MKI, value, 2 End Function
Function CVI(arg As String) As Integer If Len(arg) < 2 Then Err.Raise 13 CopyMemory CVI, ByVal arg, 2 End Function
Function MKL(value As Long) As String MKL = Space$(4) CopyMemory ByVal MKL, value, 4 End Function
Function CVL(arg As String) As Long If Len(arg) < 4 Then Err.Raise 13 CopyMemory CVL, ByVal arg, 4 End Function
Function MKS(value As Single) As String MKS = Space$(4) CopyMemory ByVal MKS, value, 4 End Function
Function CVS(arg As String) As Single If Len(arg) < 4 Then Err.Raise 13 CopyMemory CVS, ByVal arg, 4 End Function
Function MKD(value As Double) As String MKD = Space$(8) CopyMemory ByVal MKD, value, 8 End Function
Function CVD(arg As String) As Double If Len(arg) < 8 Then Err.Raise 13 CopyMemory CVD, ByVal arg, 8 End Function
Function MKC(value As Currency) As String MKC = Space$(8) CopyMemory ByVal MKC, value, 8 End Function
Function CVC(arg As String) As Currency If Len(arg) < 8 Then Err.Raise 13 CopyMemory CVC, ByVal arg, 8 End Function
Function MKDt(value As Date) As String MKDt = Space$(8) CopyMemory ByVal MKDt, value, 8 End Function
Function CVDt(arg As String) As Date If Len(arg) < 8 Then Err.Raise 13 CopyMemory CVDt, ByVal arg, 8 End Function
Function MKV(value As Variant) As String MKV = Space$(16) CopyMemory ByVal MKV, value, 16 End Function
Function CVV(arg As String) As Variant If Len(arg) < 16 Then Err.Raise 13 CopyMemory CVV, ByVal arg, 16 End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
 |

|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|