[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

where is my error with array?

Posted on 2006-05-18
1
Medium Priority
?
171 Views
Last Modified: 2010-04-05
Const
   Mes : array of string = ['janeiro','fevereiro','março','abril','maio'];

0
Comment
Question by:hidrau
1 Comment
 
LVL 26

Accepted Solution

by:
Russell Libby earned 2000 total points
ID: 16710994
You are trying to use a dyanamic array as a constant.

-- delphi help --
To declare an array constant, enclose the values of the array’s elements, separated by commas, in parentheses at the end of the declaration. These values must be represented by constant expressions. For example,

const Digits: array[0..9] of Char = ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');


So for your example, it should be:

const
  Mes:    Array [0..4] of String = ('janeiro', 'fevereiro', 'março', 'abril', 'maio');


Regards,
Russell
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question