Google Answers Logo
View Question
 
Q: For JoseLeon-ga: Resizing an array in Delphi 3 ( No Answer,   0 Comments )
Question  
Subject: For JoseLeon-ga: Resizing an array in Delphi 3
Category: Computers > Programming
Asked by: cyntlhiadiane-ga
List Price: $5.00
Posted: 08 Oct 2003 11:16 PDT
Expires: 08 Oct 2003 18:16 PDT
Question ID: 264270
I am able to pass my array.
vAccountNum : array[1..2] of variant;
At run time I do not know how many elements will actually fill my new
array.  As I need to save each element to my database, a huge fixed
array will not work.  As the program loops through, selecting the
records, how I can resize my array?  The array has to be some type of
variant to match the existing type.  And this is Delphi 3.  I don't
believe Delphi 3 supports dynamic arrays.

sAccountNumber :  olevariant; 
vAccountNum : array[1..2] of variant;

looop through and get sAccountNumber;
vAccountNum[iCount] := sAccountNumber;
Call procedure to resize the array; // How do I resize my array to
match iCount?
Save to database; 

Thank you.

Cynthia
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy