Announcement

Collapse
No announcement yet.

Libraries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Libraries

    I refer to a Wish List and Bug Report. I have found lots of bugs
    in PBDLL and, each time I find one, an extensive examination reveals
    I put them there myself.
    My request is for info on setting up a library of routines that
    can be included in various programmes without having to mess around
    changing things like variable names.
    I often include bits of code from one programme when writing another
    but there seems a lot of messing around to get it to work.
    Does anyone have any "secret" to having a library from which one can
    simply "include" a block of code?
    Regards,
    Brian.


    ------------------
    Brian.

    #2
    Hi Brian

    what I do is prefix all functions and constants with a descriptive
    name. The filename and the prefix are identical.

    For example:

    %UTIL_CONSTANT1 = 1
    util_DoFunc()

    etc..

    This works for me.


    Cheers

    Florent

    ------------------

    Comment


      #3
      The secret (??) is to restructure your code libraries so that they use procedures (SUBs or FUNCTIONs) with parameters instead of variable names.

      This is not the same thinking as cut-and-paste, but once you've made the investment in creating the routines, the payoff in time saved is enormous.


      MCM
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎