home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,230 of 10,840   
   Dikkie Dik to sruojlim   
   Re: Reposting:About constant   
   21 Feb 05 22:44:56   
   
   From: Abuse@SpamBusters.com   
      
   sruojlim schreef:   
   >   Hi everyone   
   > I'm posting again this question as my system was down at time of the first   
   > posting...well something in the newsgroups was down.   
   >   
   > I'd like to know how i should declare a constant as an array with two   
   > dimension.  I've tried the following but seems the syntax is somehow wrong.   
   > Can someone help me in doing so or any clue would be fully appreciate.   
   >   
   > Here is my bugged code:   
   >   
   > Const TableDOB(1..3,1..2) of String =   
   > (("John","760303"),("Paul","670403"),("Georges","680902"))   
   >   
   >   
   > Many thanks to all   
   >   
   >   
   >   
   There is no such thing as a "array constant" in Visual Basic. Simply use   
   a variable and use it member by member. If you really want to do it all   
   in one statement you can use the Array function, like:   
      
   Array(Array("John","760303"), Array("Paul","670403"),   
   Array("Georges","680902"))   
      
   But it's not what I would call readable code.   
      
   Best regards   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca