array problems - urgent!!!

Results 1 to 2 of 2

Thread: array problems - urgent!!!

  1. #1
    Join Date
    Dec 1969

    Default array problems - urgent!!!

    I am trying to define an array, but first I want to determine the number of elements I need. this is my code:<BR><BR>dim mine<BR>mine = 2<BR>dim yours(mine)<BR><BR>but I get this error:<BR><BR>Microsoft VBScript compilation error 800a0402<BR>Expected integer constant<BR>/replayarchive/textarea.asp<BR>dim yours(mine)<BR>----------^<BR><BR>whats going on, please help thanks

  2. #2
    Join Date
    Dec 1969

    Default Have to say

    Dim yours(2) <BR><BR><BR>but you can do...<BR>Dim yours<BR>Redim yours(mine)<BR><BR>Jason

Posting Permissions

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