Pascal Const Array

 

I am trying to write a few very dynamic procedures and functions and wonder about transferring parameters to a procedure as an Array. This is actually easy enough done. Just that I would like to pass something like VAR a,b,c: INTEGER; Name, Text1,Text2: STRING; todaysDate: TDate; PROCEDURE HandleValues(Const Values:ARRAY OF???) BEGIN // Code to handle fetching the values. END; BEGIN HandleValues([a,b,c,Name,Text1,TodaysDate]); HandleValues([Name,Text1,Text2,a,c]); END.

Pascal Array Of Strings

Pascal

Multidimensional Arrays Pascal

Pascal Const ArrayArray

Pascal Dynamic Array

A constant declaration part starts with the reserved word const. BPArrayInitDemo; const MyStringsCount = 5; type Ident = String [20]; const MyStrings: array [1. In Pascal we can specify a packed array by inserting the keyword PACKED. We can assign a string (constant or variable) to a string variable, compare two of.