-
How to fill a string array at compile time?
For some reason I'm drawing a blank on this. I want a public string array filled with definitions at compile time. Possible? Something like
Public strArray(10) as String
Public Const strArray(1) = "Wee"
Public Const strArray(2) = "Woo"
I know I can fill the array at runtime by just sticking the code in a subroutine and calling it at startup. And that's ok. Just wondering if there is another way.
-
Dim Arr() As string = New String() {"Wee","Woo",etc.}
Similar Threads
-
By luca90 in forum VB Classic
Replies: 3
Last Post: 04-13-2011, 03:39 PM
-
By luca90 in forum VB Classic
Replies: 1
Last Post: 11-22-2010, 02:12 PM
-
By Ariel in forum VB Classic
Replies: 3
Last Post: 08-06-2002, 11:42 AM
-
By anonymous in forum VB Classic
Replies: 2
Last Post: 12-17-2001, 05:32 AM
-
By bill in forum VB Classic
Replies: 1
Last Post: 04-29-2000, 11:21 AM
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|