PDA

View Full Version : What is the equivalent code in VB.NET ?



Ronald_yoh
12-03-2008, 10:01 PM
Hi There,

can anyone help me to convert the VBA code below to VB.Net syntax?

------------------------------------------------------

Option Compare Database

Declare Sub Process Lib "Process.dll" (ByRef sInt As Integer, ByRef sString As MemInfo)

Type MemInfo
sString As String * 100
End Type

Public Sub test()
Dim sSize As Integer
Dim sWord As MemInfo

sSize = 100
sWord.sString = "Hello: "
Call Process (sSize , sWord )

MsgBox sWord.sString

End Sub

------------------------------------------------------
~VBA Tags Added By Oorang
I like pie.