hexagon logo

Getting started in VB for your PC DMIS

I like many of you have done very little with VB. As for me; I had no idea where or how to start. I could not see how typing those hundreds of lines of script could ever save me any kind of time and as far as finding a way to learn it or someone to get me started that just got to be a joke, unless I went and took a full blown course (that I didn't even know if I'd get anything out of or if I would ever use”. I had given up.

Well the other day I happened across something I think might actually be of help and makes doing something in VB practical. I don’t need to write every one of those hundreds of lines of script, and I can start learning from myself.

What I did was I took a program I already have “A regular PC DMIS Program I built and run often” and did an EXPORT as BASIC. When I opened it up all those hundreds of lines of script were already in there and though in a different “form or language” what ever you want to call it I found that I could walk thru most if not all of it as it was the same program I have in PC DMIS also. Now rather than typing all that out I need only “ADD, SUBTRACT and CHANGE things to make it work for me.

Now I think I have a starting place to try some VB.

I don’t know maybe I’m the only one that did not know this? Maybe I’m not yet on the right track, But I think I have a starting place now and I know before this I was lost.

I hope this is helpful to some of you.

Best of luck,

Tested
Parents
  • Good luck everyone. I personally find VB fun to do (when I can figure it out).

    Some things to note:

    • Coding directly inside of PC-DMIS's BASIC script editor is a somewhat different experience from coding inside of something like Excel's VB script editor. The principles are the same, but some of the code statements may be slightly different since the BASIC script editor expects the code to follow the Cypress Enable. In addition the BASIC script editor does not have all the syntax code helps you can get from something like Excel's VB editor. On the other hand, you can easily tie scripts created from the BASIC script editor (.BAS files) onto PC-DMIS's toolbars and menus.
    • Use the pcdbasic.chm help file. It contains the Cypress Enable scripting language syntax for the BASIC script editor as well as a description of the Automation objects available from PC-DMIS and some sample scripts to help you get started. You can easily get to this by pressing F1 from within the BASIC Script Editor.
    • Some sample VB scripts are available for download from the Wilcox site.
    • Some user-created scripts are available for download from the Wilcox site's Custom Script Repository (you must be registered to download and to upload scripts).
    • If you plan on doing stuff in excel, here's a site I recommend. I use it as a resource for several office VB scripts I've created.

    Enjoy.
Reply
  • Good luck everyone. I personally find VB fun to do (when I can figure it out).

    Some things to note:

    • Coding directly inside of PC-DMIS's BASIC script editor is a somewhat different experience from coding inside of something like Excel's VB script editor. The principles are the same, but some of the code statements may be slightly different since the BASIC script editor expects the code to follow the Cypress Enable. In addition the BASIC script editor does not have all the syntax code helps you can get from something like Excel's VB editor. On the other hand, you can easily tie scripts created from the BASIC script editor (.BAS files) onto PC-DMIS's toolbars and menus.
    • Use the pcdbasic.chm help file. It contains the Cypress Enable scripting language syntax for the BASIC script editor as well as a description of the Automation objects available from PC-DMIS and some sample scripts to help you get started. You can easily get to this by pressing F1 from within the BASIC Script Editor.
    • Some sample VB scripts are available for download from the Wilcox site.
    • Some user-created scripts are available for download from the Wilcox site's Custom Script Repository (you must be registered to download and to upload scripts).
    • If you plan on doing stuff in excel, here's a site I recommend. I use it as a resource for several office VB scripts I've created.

    Enjoy.
Children
No Data