-
Hi,
I have in Module
Public Type UserRecord ' Create user-defined type.
Data1 As String * 10
Data2 As String * 1
Mytest1 As integer
My1 as boolean
End Type
In My Procedure:
dim Myrec as userrec
1) how can i address the UserRecord as ONE STRING?
2) How can i clear UserRecord in 1 command or move data to the record as 1 field like Userrecore = text1.text or Myrec = text2.text ?
Regards
-
You could build a function which converts the textbox.text into the user type :
function FillMyRecord (byref thisrecord as userrecord,textboxvalue as string)
thisrecord.data1 = left$(textboxvalue,10)
thisrecord.My1 = right$(textboxvalue,1)
end function