first of all, thanks to all who've helped me thus far... i really appreciate it.

1. how do i determine the number of elements in a vector?
i tried:

i = vectorName.elementCount();

but it doesnt work.

2. if the vector stores user-defined objects (and these objects consist of int, string, date etc), can i access a particular attribute of an object in the vector directly? i.e.

int retrieved;

retrieved = vectorName.elementAt(0).age; //where age is of int type