Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Handle


This question is answered.


Permlink Replies: 7 - Last Post: Mar 12, 2018 11:35 PM Last Post By: Roy Lambert
Melissa Torn

Posts: 143
Registered: 4/30/09
Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 11, 2018 12:31 AM
Uses ShellApi;

DocPath:=HlpFilePath+HlpFileName+'.PDF';
if FileExists (DocPath) then
ShellExecute(Handle, 'Open', PChar(DocPath), Nil, Nil, SW_SHOWNORMAL);

If I use above procedure in my all forms it works
but if i want to use in my DATAMODULE form
i am getting Undeclared identifier: 'Handle' error msg.

Thank You
Roy Lambert

Posts: 40
Registered: 10/21/99
Re: Handle
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 11, 2018 5:29 AM   in response to: Melissa Torn in response to: Melissa Torn
Melissa

A TDataModule doesn't have a handle - pass nil instead.

Roy Lambert

Melissa Torn

Posts: 143
Registered: 4/30/09
Re: Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 10:44 AM   in response to: Roy Lambert in response to: Roy Lambert
Thank you Roy
John David

Posts: 86
Registered: 9/5/16
Re: Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 2:43 PM   in response to: Melissa Torn in response to: Melissa Torn
On 12/03/2018 17:44, Melissa Torn wrote:
Thank you Roy

Your original post (and that of Roy whoever he is) has been deleted by
the moderator so we won't know what was the problem and how was it solved.

That's the funny bit of these forums/Newsgroups. I acces them using
Thunderbird so I don't know if the Forums still have your original post.

Van Swofford

Posts: 397
Registered: 6/28/03
Re: Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 2:52 PM   in response to: John David in response to: John David
John David wrote:

On 12/03/2018 17:44, Melissa Torn wrote:
Thank you Roy

Your original post (and that of Roy whoever he is) has been deleted
by the moderator so we won't know what was the problem and how was it
solved.

That's the funny bit of these forums/Newsgroups. I acces them using
Thunderbird so I don't know if the Forums still have your original
post.


The posts still show up on XanaNews.

--
Cheers,
Van

"Good judgment comes from experience, and a lot of that comes from bad
judgment." - Will Rogers
John David

Posts: 86
Registered: 9/5/16
Re: Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 4:04 PM   in response to: Van Swofford in response to: Van Swofford
On 12/03/2018 21:52, Van Swofford wrote:
John David wrote:

On 12/03/2018 17:44, Melissa Torn wrote:
Thank you Roy

Your original post (and that of Roy whoever he is) has been deleted
by the moderator so we won't know what was the problem and how was it
solved.

That's the funny bit of these forums/Newsgroups. I acces them using
Thunderbird so I don't know if the Forums still have your original
post.


The posts still show up on XanaNews.

Yes it on the Forums but I can't download it in Thunderbird:

<https://forums.embarcadero.com/thread.jspa?threadID=290978&tstart=0>
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 9:25 PM   in response to: John David in response to: John David
On 3/12/2018 5:43 PM, John David wrote:
On 12/03/2018 17:44, Melissa Torn wrote:
Thank you Roy

Your original post (and that of Roy whoever he is) has been deleted by
the moderator so we won't know what was the problem and how was it solved.

That's the funny bit of these forums/Newsgroups. I acces them using
Thunderbird so I don't know if the Forums still have your original post.


It was not deleted by a moderator.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Roy Lambert

Posts: 40
Registered: 10/21/99
Re: Handle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2018 11:35 PM   in response to: John David in response to: John David
John

(and that of Roy whoever he is)

That would be me <G>

Roy
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02