Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

Error: Type identifier expected ?... help 10 years 10 months ago #4083

  • azrael11
  • azrael11's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 0
I creat this procedure in public section
procedure inClickStar(Sender: TObject; Button: TMouseButton;
      Shift: TShiftState; X, Y: single);                        

in the created procedure i set nothing yet

it is ...
procedure form1.inClickStar(Sender: TObject; Button: TMouseButton;
      Shift: TShiftState; X, Y: single);
begin
  if Button= mbRigth then
    begin
    end;
end;
and i get the above error ...
Someone to help...

Thank you...
CT4.3 in WindowsXP SP3
Free minds... with focus in future...

Please Log in or Create an account to join the conversation.

Last edit: by azrael11.

Error: Type identifier expected ?... help 10 years 10 months ago #4084

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Sir
if Button= mbRight {NOT mbRigth} then
    begin
       //nothing
    end;

simple typo...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Error: Type identifier expected ?... help 10 years 10 months ago #4085

  • azrael11
  • azrael11's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 0

sternas wrote: Sir

if Button= mbRight {NOT mbRigth} then
    begin
       //nothing
    end;

simple typo...


Hi sternas ....
i don't think the problem is type here...
i continue to take this error... a strange thing is...

when i remove the x,y: single from the procedure has no error...

if i click in events in every component the onKeyDown it creates the same procedure with x,y: single line but i don't get an error...

i really stuck...

Thank you for your anwser...
Free minds... with focus in future...

Please Log in or Create an account to join the conversation.

Error: Type identifier expected ?... help 10 years 10 months ago #4086

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
try
procedure inClickStar(Sender: TObject; Button: TMouseButton; Shift: TShiftState; const aX, aY: single); or

procedure inClickStar(aSender: TObject; aButton: TMouseButton; aShift: TShiftState; aX, aY: single);
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Error: Type identifier expected ?... help 10 years 10 months ago #4087

  • azrael11
  • azrael11's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 0

sternas wrote: try
procedure inClickStar(Sender: TObject; Button: TMouseButton; Shift: TShiftState; const aX, aY: single); or

procedure inClickStar(aSender: TObject; aButton: TMouseButton; aShift: TShiftState; aX, aY: single);


nothing my friend
Both get the same error... :(

Thank you...
Free minds... with focus in future...

Please Log in or Create an account to join the conversation.

Error: Type identifier expected ?... help 10 years 10 months ago #4088

  • azrael11
  • azrael11's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 0
Ok I found it ... so strange bug...

here what goes wrong...
I work in a program and uses orca_scene2d...
By accident i add in uses the TplLCDLineUnit...

when this two work together for some reasons i don't understand gives the above error...

remove the TplLCDLineUnit... everything OK

Thank you for your help...
This is bug or not...?
Free minds... with focus in future...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1