Announcement

Collapse
No announcement yet.

FILEBOX.PBU

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

  • FILEBOX.PBU

    Hello All,

    I am a new user from Germany.
    I am working on an old PowerBasic project.

    In this code I found a line which I do not understand.

    $link "filebox.pbu"

    I have searched for this file but I am not getting this file.
    Now I am using PB320.

    Please give me a reply.

    Thanks

    Mishra

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

  • #2

    On 28 Jun 05, SIDDHARTHA MISHRA wrote:

    Hello SIDDHARTHA,

    > I am a new user from Germany.

    Jo, schön ...

    > $link "filebox.pbu"

    Dieses File sollte m.E. zu den PowerTOOLS (eine Toolbox) gehören, die
    von Kirschbaum vertrieben wird.

    > I have searched for this file but I am not getting this file.
    > Now I am using PB320.

    Diese Toolbox ist m.E. in der Zwischenzeit frei erhältlich. Am besten
    Du siehst einfach auf www.powerbasic.de nach, denn das obige File be-
    inhaltet widerum zahlreiche Links zu anderen Files dieser Toolbox.

    Regards,

    --------------
    / h o m a s
    ------------------
    email : [email protected] / mailto:[email protected][email protected]</A> (PGP-Key available)
    www : http://www.gohel.de / http://www.pbhq.de (PowerBASIC)
    chat : irc://irc.pbhq.de/#pbhq.cafe (Online-Chat for PB users only!)
    bbs : telnet://bbs.pbhq.de (historical access to the PBSOUND HQ BBS)
    ## CrossPoint/Agent R/C2478, via PBNEWS v0.64g (news.pbhq.de)
    http://www.gohel.de - http://www.gohel.net - http://www.pbhq.com

    Comment


    • #3
      Welcome to the board!

      I couldn't find the file either but an educated guess says it's
      a file selection routine written by the original author for
      PB/DOS.

      If you have all the files for the package, you should have this
      routine. If so, bring it up and compile it into a UNIT file then
      link it in your main file.

      If you don't have the file, you'll probably have to write one
      yourself.

      Sorry I couldn't be more help but without specifics....


      ------------------
      There are no atheists in a fox hole or the morning of a math test.
      If my flag offends you, I'll help you pack.

      Comment


      • #4
        Now I copied the whole FILEBOX Function from ..\BAS\FILEBOX.BAS file
        and put it in my main code.

        This is not a good way but It is working fine.

        This Filebox.PBU file is not there in project folder.
        So I think it was available during 1997 but later it got
        deleted from PowerBasic package.

        Q. How can I make a PBU file from BAS file ?

        Any idea.


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

        Comment


        • #5
          Q. How can I make a PBU file from BAS file
          1st line of code: $COMPILE UNIT

          Remember that you have to make all variables PUBLIC in the
          subs-n-functions. Example:

          function DoSomething(x,y,z) public

          makes the result stored in DoSomething available in the calling
          segment(s).


          ------------------
          There are no atheists in a fox hole or the morning of a math test.
          If my flag offends you, I'll help you pack.

          Comment


          • #6
            Now I copied the whole FILEBOX Function from ..\BAS\FILEBOX.BAS file and put it in my main code. This is not a good way but It is working fine.
            If it's working fine, it <U>is</U> a good way.

            FWIW, since UNIT files are linked into the MS-DOS executable anyway, there is no difference in disk or memory requirements between $LINK "filename" and copying the code in-line.

            If PB/DOS were to allow you to $LINK units to compiled Exes, you would save a compile step if you ever had to change code in that unit file. But it doesn't - you have to recompile the entire program anyway - all you "lose" is the time required to compile the code in the unit - which for a little file which does nothing but select a file might be two seconds, top.



            [This message has been edited by Michael Mattias (edited June 29, 2005).]
            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment

            Working...
            X