Skip to main content
Doc Ruckel
Participating Frequently
Aug 1, 2025 1:17 PM UTC

PROC/Basic interaction

Greetings folks!

Is it possible to call a basic subroutine that returns a counter and items associated with that counter such that someone in PROC could use the counter to pass the item associated with it?

THX!

~Doc



------------------------------
Doc Ruckel
Part time programmer
Rocket Forum Shared Account
------------------------------

    4 replies

    BenRosenberg
    New Participant
    Aug 1, 2025 2:59 PM UTC

    Greetings folks!

    Is it possible to call a basic subroutine that returns a counter and items associated with that counter such that someone in PROC could use the counter to pass the item associated with it?

    THX!

    ~Doc



    ------------------------------
    Doc Ruckel
    Part time programmer
    Rocket Forum Shared Account
    ------------------------------

    The PROCWRITE statement (in all versions of Pick BASIC) might be what you need.

    Here's a link to some documentation on the UniData/UniBasic version of PROCWRITE.

    https://docs.rocketsoftware.com/search?labelkey=unidata_8.3.2&q=PROCWRITE



    ------------------------------
    Ben Rosenberg
    Unidata Admin at HealthLink Inc
    IBM Consulting
    ------------------------------
    John Jenkins
    Participating Frequently
    Aug 1, 2025 8:07 PM UTC

    Greetings folks!

    Is it possible to call a basic subroutine that returns a counter and items associated with that counter such that someone in PROC could use the counter to pass the item associated with it?

    THX!

    ~Doc



    ------------------------------
    Doc Ruckel
    Part time programmer
    Rocket Forum Shared Account
    ------------------------------

    Doc,

    Ben's recommendation of PROCWRITE is a good call. While there are other methods this one seems best.

    NOTE: PROC is very powerful - and in many ways can 100% replace legacy BASIC code (though I would not recommend it for many reasons). For my sins - and for non-technical reasons - in the depths of my past I was part of a team that wrote a complete Purchase Ledger system in PROC without a line of BASIC anywhere.

    Regards,

    JJ



    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------
    JJ
    Brian Leach
    Participating Frequently
    Aug 4, 2025 8:58 AM UTC

    Doc,

    Ben's recommendation of PROCWRITE is a good call. While there are other methods this one seems best.

    NOTE: PROC is very powerful - and in many ways can 100% replace legacy BASIC code (though I would not recommend it for many reasons). For my sins - and for non-technical reasons - in the depths of my past I was part of a team that wrote a complete Purchase Ledger system in PROC without a line of BASIC anywhere.

    Regards,

    JJ



    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------

    Really John, that's nothing to be proud of. And are you sure it wasn't RPL (Revolting PROC Language)?

    PROC is definitely a question of just because you can doesn't mean you should. Please don't encourage it.



    ------------------------------
    Brian Leach
    Director
    Brian Leach Consulting
    Chipping Norton GB
    ------------------------------
    John Jenkins
    Participating Frequently
    Aug 4, 2025 3:08 PM UTC

    Really John, that's nothing to be proud of. And are you sure it wasn't RPL (Revolting PROC Language)?

    PROC is definitely a question of just because you can doesn't mean you should. Please don't encourage it.



    ------------------------------
    Brian Leach
    Director
    Brian Leach Consulting
    Chipping Norton GB
    ------------------------------

    Brian,

    It was indeed PQN PROC - and it was done for political reasons on Reality.

    I would definitely not recommend it - BASIC is there for a good reason.

    JJ



    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------
    JJ