Gary Jeurink wrote on 2012-06-22: 
>  You lost me.  ... I'm just fuzzy on how to run my CallRemote procedure
and return a .t. or .f.

Gary,

Where does the procedure exist? What program?

Have you already put the program name into the list of procedures via "SET
PROCEDURE TO ..."?

The code you pasted for the PROCEDURE CallRemote(cString) will return a
logical, TRUE when successful and FALSE when it fails to launch the
application "irlinc.exe".

Once the PROCEDURE can be found in the list of known programs via the SET
PROCEDURE setting, you just need to call the PROCEDURE like a FUNCTION. 

   Local returnValue
   returnValue = CALLRemote('c:\alldat\irctrl\amp-volup.ir')
    IF returnValue
      REPLACE mediaindex.volume WITH mediaindex.volume -0.5
    ELSE
       MESSAGEBOX([I'm too busy to change the volume now.])
    ENDIF

For the simple beep, you may look at using MessageBeep
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680356(v=vs.85).as
px

   DECLARE MessageBeep IN WIN32API integer
   MessageBeep(0x0030)


Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to