Why "ShowMessage" fail the compile in Delphi?

How to create strategies and indicators
Message
Author
charvo
Posts: 52
Joined: Tue Dec 04, 2012 1:15 pm

Why "ShowMessage" fail the compile in Delphi?

#1 Postby charvo » Fri Dec 07, 2012 12:19 am

Hi, I am using ShowMessage() in delphi to work as Alert() in MT4.

but my code cannot go thru the compiling in Delphi 7.

the error is: Undeclared Identifier 'ShowMessage'

how come does this happen? I thought 'ShowMessage' is a Delphi function, isn't it?

Code: Select all

ShowMessage('NIMA FAILED to enter a REAL ');


the code is very simple.

KelvinHand
Posts: 103
Joined: Sun Jan 02, 2011 6:05 pm

Re: Why "ShowMessage" fail the compile in Delphi?

#2 Postby KelvinHand » Fri Dec 07, 2012 2:53 am

charvo wrote:Hi, I am using ShowMessage() in delphi to work as Alert() in MT4.

but my code cannot go thru the compiling in Delphi 7.

the error is: Undeclared Identifier 'ShowMessage'

how come does this happen? I thought 'ShowMessage' is a Delphi function, isn't it?

Code: Select all

ShowMessage('NIMA FAILED to enter a REAL ');


the code is very simple.


Did you USES DIALOGS or not ?

Yes. Very Simple. Just google 'Delphi ShowMessage'

charvo
Posts: 52
Joined: Tue Dec 04, 2012 1:15 pm

#3 Postby charvo » Fri Dec 07, 2012 9:57 am

ah-ha, Kelvin, thanks a lot

my google's 1st result is from DelphiBasics which didn't show 'Use Dialogs' in its example, my bad----should look more :-)

we need experts like you here!

Have a nice weekend!

KelvinHand
Posts: 103
Joined: Sun Jan 02, 2011 6:05 pm

#4 Postby KelvinHand » Fri Dec 07, 2012 6:21 pm

charvo wrote:ah-ha, Kelvin, thanks a lot

my google's 1st result is from DelphiBasics which didn't show 'Use Dialogs' in its example, my bad----should look more :-)

we need experts like you here!

Have a nice weekend!


Remember:
- On the Upper Top Right give the info of Unit should uses eg. "Dialogs Units"
- Click on the below show "Show full unit code" to see the examples, Look into the uses section.

If no sure, try the example and then compare with your FT code. That how you learn.

naveed01
Posts: 1
Joined: Fri Nov 14, 2014 2:30 am

Re: Why "ShowMessage" fail the compile in Delphi?

#5 Postby naveed01 » Fri Nov 14, 2014 2:58 am

HI all

I' m using Dialog Box to show some info to user with this :
Function AskUser( Message : string; Pause : boolean) : integer;
var






_______________________________________________________
Cut down your exam stress by using our latest cert killer and high quality VCPVCD510 braindumps and 117-201 exam. We provide updated exam sheets with 100% pass guarantee along with coloradocollege.edu.


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 9 guests