Home Page link  

POS Hook info

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
POS Hook info Alias 07-28-2005
`--> Re: POS Hook info Antonio Mazzeo07-29-2005
Posted by Alias on July 28, 2005, 8:07 am
Please log in for more thread options
Is there anyway to capture what hook was triggered in my code. I would
like to get the "HookType" Any ideas ?

TIA



Posted by Matt on July 28, 2005, 8:14 am
Please log in for more thread options
You can make a COM for each hook type and simply bring up a message box that
says the hook type.

Matt

> Is there anyway to capture what hook was triggered in my code. I would
> like to get the "HookType" Any ideas ?
>
> TIA
>




Posted by Alias on July 28, 2005, 8:24 am
Please log in for more thread options
Well, I have some generic code that is run when two different hooks are
tiggered. The thing is that in the generic code there is a small
routine I want to run only if one of the hooks are triggered and I dont
want to sperate this small routine into its own module.

So, the code/function to capture the hooktype would be in the generic
code module.

hope that makes sense.

TIA



Posted by Glenn Adams [MVP - Retail Mgmt on July 28, 2005, 3:39 pm
Please log in for more thread options
No, there's no way to get the hooktype of the caller, or at least I wasn't
able to find one when I was looking for it. Just create small wrapper
classes with the Process() function then implement your common code in a
separate class or code module and call it from each of the wrappers.

--
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com
glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information



> Well, I have some generic code that is run when two different hooks are
> tiggered. The thing is that in the generic code there is a small
> routine I want to run only if one of the hooks are triggered and I dont
> want to sperate this small routine into its own module.
>
> So, the code/function to capture the hooktype would be in the generic
> code module.
>
> hope that makes sense.
>
> TIA
>




Posted by Antonio Mazzeo on July 29, 2005, 2:11 pm
Please log in for more thread options

> Is there anyway to capture what hook was triggered in my code. I would
> like to get the "HookType" Any ideas ?
This is only an idea...

Pheraps from QSRules.SessionClass.Status it can to have information
about current status... but not the event...
antoni




Similar ThreadsPosted
Hook at print time. Hook #1 August 9, 2005, 2:21 pm
Hook Help September 29, 2008, 5:59 pm
Dot Net Hook Problem September 22, 2005, 5:19 pm
RMS EDC Verifcation in DLL Via Hook November 10, 2005, 11:05 am
SavePurchaseOrder Hook April 17, 2006, 5:31 pm
RMS Additem hook July 13, 2006, 4:04 pm
RMS Additem hook July 13, 2006, 4:05 pm
Hook type to use November 16, 2006, 7:02 pm
Add item hook April 11, 2007, 7:06 am
RMS 1.3 AddItem Hook April 13, 2007, 12:28 pm

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap