|
-
Jun 11th, 2005, 06:30 PM
#1
Thread Starter
Frenzied Member
Record Questions
I got questions here. I came across the code:
strLastName As String * 15
Why there is a 15 there? If I delete that 15 it would give me an error. How do we know that it's 15 rather than other integers?
And:
Private Sub AddToList(intRecordNum As Integer)
'Add an employee to the list and to the ItemData
Dim strName As String
strName = Trim(mudtEmployee.strLastName) & "," & mudtEmployee.strFirstName
With cboEmployee
.AddItem strName
.ItemData(.NewIndex) = intRecordNum
End With
End Sub
Why does the program need that line: .ItemData(.NewIndex) = intRecordNum?
And what does the Trim method is used for?
Thanks for your response!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|