so if you want to store name of cities based on state so here city count is going to be a dynamic values, and you use dynamic array to store values because u do not know size of the array ..
so if you do Dim cityName(10) .. you will store only 10 city names here but if you do Redim cityName(itemCount) where itemCount is dynamic value, and depends on State and preserve is used to prevent data loss during resizing of arrary... http://www.developerfusion.com/code/241/preserve-with-redim/ On Monday, May 13, 2013 3:57:07 AM UTC-4, Venkat Reddy Bandaru wrote: > > Could you please explain the use of redim or preserve redim array when we > have dynamic array > Explain with example please > > Thanks > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
