• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Visual Basic [Alternativa] Lbound

Status
Not open for further replies.

top10

Moderator
User
Joined
Mar 18, 2015
Messages
487
Reputation
0
Reaction score
5,047
Points
243
Credits
0
‎10 Years of Service‎
70%
[HIDE-THANKS][LENGUAJE=VB]'MSVBVM60.__vbaLbound

Public Declare Function iLBound Lib "MSVBVM60" Alias "__vbaLbound" (ByVal ptr As Long, ByVal Exp As Long) As Long

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Long, ByVal Length As Long)

Public Function Alternative_LBound(vbv As Variant) As Long

Dim a As Long

Dim aa As Long

a = VarPtr(vbv) + &H8

CopyMemory aa, ByVal a, &H4

CopyMemory a, ByVal aa, &H4

Alternative_LBound = iLBound(&H1, a)

End Function[/LENGUAJE][/HIDE-THANKS]

 
Status
Not open for further replies.
Back
Top