PC Review


Reply
Thread Tools Rate Thread

Classes and Collections

 
 
Neal Ostrander
Guest
Posts: n/a
 
      22nd Jul 2008
Could someone point me to some good tutorials on using classes and collections.
Thanks
Neal
 
Reply With Quote
 
 
 
 
perry
Guest
Posts: n/a
 
      22nd Jul 2008
Straight from F1 Access help
Repost, if you have difficulties implementing below code in yr solution.

Krgrds,
Perry

'Access Help code
'=============
Sub ClassNamer()
Dim MyClasses As New Collection
Dim Num
Dim Msg As String
Dim TheName, MyObject, NameList
Do
Dim Inst As New Class1
Num = Num + 1
Msg = "Enter a name" & Chr(13) _
TheName = InputBox(Msg, "Name the items in the collection")
Inst.InstanceName = TheName
If Inst.InstanceName <> "" Then
MyClasses.Add item := Inst, key := CStr(Num)
End If
Set Inst = Nothing
Loop Until TheName = ""
For Each MyObject In MyClasses
NameList = NameList & MyObject.InstanceName & Chr(13)
Next MyObject
MsgBox NameList, , "names in collection MyClasses"

For Num = 1 To MyClasses.Count
MyClasses.Remove 1
Next
End Sub




"Neal Ostrander" <(E-Mail Removed)> schreef in
bericht news:C3A62D9B-C06C-4054-B9EE-(E-Mail Removed)...
> Could someone point me to some good tutorials on using classes and
> collections.
> Thanks
> Neal


 
Reply With Quote
 
Lonnie M.
Guest
Posts: n/a
 
      23rd Jul 2008
Neal,
Chip Pearson has some great stuff on Classes, Collections, and
Dictionaries. He is an Excel VBA guy, but it is still very applicable
to working with these object oriented concepts. See link below:

http://www.cpearson.com/excel/topic.aspx

http://groups.google.com/group/micro...earson+classes

http://groups.google.com/group/micro...on+collections

HTH — Lonnie M.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
represent XML in classes/collections (C#) Bart Steur Microsoft Dot NET 3 24th Sep 2008 05:09 PM
represent XML in classes/collections (C#) Bart Steur Microsoft C# .NET 3 24th Sep 2008 05:09 PM
Classes, collections and data Paul Microsoft VB .NET 3 28th Sep 2004 09:49 PM
Inheriting VB6 dll classes/collections into dotnet classes/collections =?Utf-8?B?Q2hhcmxlcw==?= Microsoft Dot NET Framework 0 30th Apr 2004 02:56 PM
classes and collections =?Utf-8?B?c29ja2E=?= Microsoft Access ADP SQL Server 2 16th Feb 2004 11:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.