View Single Post
  #1362  
Old 24-02-2019, 20:03
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by describe19 View Post
I have another question: I am trying to make an array of strings I have tried this but it doesn't work:
var
MyArray: array [0..2] of string =('cat','dog','man');
Is it possible to declare and initialize an array of strings in such a way?
var
MyArray: array of string;
begin
MyArray := ['cat','dog','man'];
Reply With Quote
The Following 3 Users Say Thank You to Razor12911 For This Useful Post:
describe19 (26-02-2019), Grumpy (24-02-2019), ShivShubh (24-11-2019)