problem with array

Results 1 to 2 of 2

Thread: problem with array

  1. #1
    Join Date
    Dec 1969

    Default problem with array

    Hi everyone...I have a problem that with declaring the size of an array... whenever i use dim num(12) works.....but with dim num(cint(rndMax)) would not works... please helppppp!!!<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: problem with array

    For some reason best known only to themselves, the designers of VBScript decided that you can only Dim an array with an integer constant. What you have to do is this:<BR><BR>Dim num()<BR>ReDim num(CInt(rndMax))<BR><BR>Stupid, huh? I&#039m sure there&#039s a reason, but I&#039ve never met anyone who claims to know what it is.<BR><BR>Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts