[Year 12 SofDev] Arrays of unknown length.

Timmer-Arends timmer at melbpc.org.au
Sat Jun 23 17:43:55 EST 2007


Hello Bruce

I don't quite get you r example:

> I am trying to use eg. Dim Score() as integer and then later use ReDim Preserve(count) but can't get the code right. 

If your DIM was for the array SCORE then your REDIM must be for the array SCORE, not for the array PRESERVE() ????

eg
private sub XXXX
dim score() as integer

count = ???? (a value is set somehow)
redim score(count)

end sub

I think PRESERVE is a keyword that tells qb not to destroy the contents of the original array when it its redimmed, but I can't remember its syntax in the redim statement

Regards
Robert T-A
Brighton SC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20070623/85da3298/attachment.html


More information about the sofdev mailing list