Re: adding a menu item



Something I've done was to rename the program, and add a new wrapper
program.

If the program on the menu is foo.r

rename foo.r to foo-2.r

create and compile a new foo.p that does what you want, and runs foo-2.r at
the end.

My specific example printed out PO receiving labels. It went something like
this:

define variable begin-trans-num as integer.
find last iix.
begin-trans-num = iix.trans-num.
run original-po-receiving.r.
for each iix where iix.trans-num > begin-trans-num and
iix.user-code = userid("TMM") and
iix.trans-type = "POR":
run print-barcode-label ( iix.trans-num ).
end.




"chefsride" <k.harnden@xxxxxxx> wrote in message
news:1133462662.565838.306650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I am working with a client that is running a commerical application and
> all they have is r-code. I want to add a menu item a particular window
> in this program so they can run a piece of custom code from there
> program any ideas would be great.
>


.



Relevant Pages

  • Re: [PHP] How can I use a functions default arguments but change one of the end ones in the list?
    ... You could make a wrapper ... Then you can rename your sql_queryfunction to real_sql_query ... func_get_argsin place of statically-defined variables. ... PHP General Mailing List ...
    (php.general)
  • Re: Calling C++ from C
    ... Rename your original main to C_main, ... following wrapper: ... int main ... HTH, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Mac OS X vs. Other *nixes
    ... have to right-click and select Rename. ... And I'm always comforted by both KDE and Gnome's habit of lagging ... KDE seems to remember window positions and direstory states just fine, ... GNOME is not so good at doing so. ...
    (comp.sys.mac.advocacy)
  • Re: Cannot Open WORD
    ... Suzanne S. Barnhill ... Right clicked on Normal.dot and selected Rename ... Small window appeared with: "Cannot rename Normal: ... Thank you, George ...
    (microsoft.public.word.application.errors)
  • Re: The problem with Macs ....
    ... change their window title if you rename a file behind their backs. ... If need to rename a file or folder it generally does it with no ... I'm not going to save it from the app ...
    (uk.comp.sys.mac)