|
-
Aug 22nd, 2000, 12:53 AM
#1
Thread Starter
Lively Member
is there any easy way that i can maintain a set of, say, strings, and be able to access them easily, possibly in order whilst ensuring uniquity (if that is a word)
-
Aug 22nd, 2000, 12:57 AM
#2
Frenzied Member
databases, or arrays? I didn't fully understand what you wanted...
-
Aug 22nd, 2000, 01:25 AM
#3
I dont know if this is what you wanted but you could use an Enumeration of strings:
Code:
Private Enum NameOfEnum
String1 = "MyString1"
String2 = "MyString2"
String3 = "MyString3"
String4 = "MyString4"
String5 = "MyString5"
String6 = "MyString6"
End Enum
Private Sub Form_Load()
MsgBox NameOfEnum.String1
End Sub
they are pretty much constant, you cant change them.
-
Aug 22nd, 2000, 01:38 AM
#4
Fanatic Member
I think that the ensuring uniqueness bit would be up to your code, either a 2D array or a UDT Array would do what you want I imagine, as would a collection.
If you bound it up in a class you could have your own rules to ensure uniqueness
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
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
|