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
  • 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 see no problem with this. Sounds perfect. Perhaps it can wait for a single keystroke and jump based on that. Problem is- I don't know how to code this stuff. Are there any examples of code that contain dialogs, "if" or "case" type evaluation? If so I could start ripping it apart and learning.

    (All of my basic scripts are just modifications of exporting snippets of code from PC-DMIS. The only syntax I know how to employ is the ' comment character.)
Reply
  • 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 see no problem with this. Sounds perfect. Perhaps it can wait for a single keystroke and jump based on that. Problem is- I don't know how to code this stuff. Are there any examples of code that contain dialogs, "if" or "case" type evaluation? If so I could start ripping it apart and learning.

    (All of my basic scripts are just modifications of exporting snippets of code from PC-DMIS. The only syntax I know how to employ is the ' comment character.)
Children
No Data