Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-06

Error:Operator Is not oberloaded in Free pascal

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

mokashe.ram

Hi EveryOne,

can any one help me on below issue, as in have one variable of type ARRAY, see below

*
bonus_details_record = RECORD
terminal_bonus : ARRAY[1..2] OF REAL;* IF terminal_bonus > 0 THEN*

as above statement is possible in Turbo pascal but In Free Pascal, I am geeting Below Error : Operator Is not
oberloaded:'bonus_details_record.array[1..2] of real' >'shortInt'

SO please suggest me the solution

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Error-Operator-Is-not-oberloaded-in-Free-pascal-tp5719614.html Sent from the Free Pascal - General mailing list .

Reply by email

Jonas Maebe
to mokashe.ram
mokashe.ram wrote 11 lines
can any one help me on below issue, as in have one variable of type ARRAY, see below * bonus_details_record = RECORD terminal_bonus : ARRAY[1..2] OF REAL;* IF terminal_bonus > 0 THEN* as above statement is possible in Turbo pascal but In Free Pascal, I am geeting Below Error : Operator Is not oberloaded:'bonus_details_record.array[1..2] of real' >'shortInt'

That cannot work either in Turbo Pascal. You probably made a mistake somewhere.

Jonas

Reply by email

Jonas Maebe
to mokashe.ram
mokashe.ram wrote
But already THis code is running in Turbo pascal and i am migrating TP application to Free pascal.

No, that code does not run in Turbo Pascal (see attachment if you don't believe me). You probably changed something else already.

Jonas

Reply by email