How do I list the number of elements in a vector, i.e test : array[1..10] of string; ?
spockenheit
0
Newbie Poster
Recommended Answers
Jump to PostI think it's something like this
program ??; var test : array[0..4] of String; l : Integer; begin a[0] := '1'; a[1] := '2'; a[2] := '3'; a[3] := '4'; a[4] := '5'; writeLn('There are ',length(a),' elements in the array'); end.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.