hexagon logo

Please help/guide/or just do it; Basic script to open other basic scripts

I am not providing a code sample, but at the end of this I hope one will exist. Ultimately I want a .BAS that opens a dialog that allows me to execute other .BAS files I have created. It'd be great if they can be assigned to buttons instead of a file selection dialog.

I want this functionality because the PC-DMIS toolbars don't work properly- they lose the icon leaving a blank toolbar- leaving me to guess what is what. With a .BAS like the one I have described I can assign just one user defined command and not care that it is a blank icon.

Is anyone versed enough in BASIC to help me with this?
Parents
  • It's possible. Everything is possible with computers, it just takes different amounts of time.

    Unfortunately your wish seems to me to be TMWFTLB ("too much work for too little benefit") - the time would in my opinion be better spent fixing the PC-DMIS toolbars (but neither you nor I can do that)...

    You can of course combine all your basic snippets in one gigantic .BAS-file, and begin with a dialog that jumps to the selected function. I don't know how large a basic script may be...

    I can't find anything in the PC-DMIS Basic Help indicating a way to call another basic script file, so to do what you want will probably need an external program in VB/C#/C++/Delphi/whatever, and every script you want to include in the system will have to be translated to the programming language you choose to use.

    TMWFTLB...
Reply
  • It's possible. Everything is possible with computers, it just takes different amounts of time.

    Unfortunately your wish seems to me to be TMWFTLB ("too much work for too little benefit") - the time would in my opinion be better spent fixing the PC-DMIS toolbars (but neither you nor I can do that)...

    You can of course combine all your basic snippets in one gigantic .BAS-file, and begin with a dialog that jumps to the selected function. I don't know how large a basic script may be...

    I can't find anything in the PC-DMIS Basic Help indicating a way to call another basic script file, so to do what you want will probably need an external program in VB/C#/C++/Delphi/whatever, and every script you want to include in the system will have to be translated to the programming language you choose to use.

    TMWFTLB...
Children
No Data