New topic: 

Quick and dirty Array

<http://forums.realsoftware.com/viewtopic.php?t=43997>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        JohnV          Post subject: Quick and dirty ArrayPosted: Mon 
May 14, 2012 1:18 pm                         
Joined: Sun Jan 28, 2007 2:38 pm
Posts: 96                I want an array string three elements

dim files(2) as String= "one","two","three"

This fails. What is the syntax?   
                             Top                JohnV          Post subject: 
Re: Quick and dirty ArrayPosted: Mon May 14, 2012 1:28 pm                       
  
Joined: Sun Jan 28, 2007 2:38 pm
Posts: 96                Found it!

Dim names() As String
// using the Array function
names = Array("Fred", "Ginger", "Stanley")
   
                             Top                simulanics          Post 
subject: Re: Quick and dirty ArrayPosted: Mon May 14, 2012 2:36 pm              
           
Joined: Sun Aug 12, 2007 10:10 am
Posts: 583
Location: Boiling Springs, SC                can also use your first format 

Dim names() As String = Array("Fred", "Ginger", "Stanley")      
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to