hexagon logo

New to script writing, please help

The company I work for uses VB scripts for just about everything from excel to saving the parts after good ones are run. Normal stuff i suppose. I really want to learn how to write them from scratch since the guys here mostly pick and choose sections of scripts from others that are already made. But we have some issues that take longer than they should to solve due to this. So I went and downloaded Microsoft visual studio 2013 community to begin to learn and use the tutorials and so on. So here's the issue. I loaded one of our excellent working scripts into the visual studio and all the dollar signs that we used in the script are showing as errors. I imagine i'm just using the wrong editor or using the wrong file to load it into.


So my questions are, can i use visual studio 2013 community to create our PD Dmis scripts?
If so, what VB file type do I use to create them and have them work with PC Dmis?
What type of VB does PC-Dmis use?


Thank for any help you can give
Parents
  • PC-Dmis use VBS (VB Script) which is quite old hat - there's a built in editor (View > Basic Script Editor) but you might as well use Notepad (or Notepad++ is better)

    If effect they're just text files with a .bas extension.


    Visual studio is using vb.net (the .net framework provides a lot of functionality which can be used by multiple languages) i.e. VB.Net / C#


    So the flow of the program, all the syntax, the if/then statements & variable declaration etc is specific to that language, but objects you create to do stuff with (i.e. a filestream / directory info etc) are generic.

    I work in vb.net but can just about follow examples in C#.
Reply
  • PC-Dmis use VBS (VB Script) which is quite old hat - there's a built in editor (View > Basic Script Editor) but you might as well use Notepad (or Notepad++ is better)

    If effect they're just text files with a .bas extension.


    Visual studio is using vb.net (the .net framework provides a lot of functionality which can be used by multiple languages) i.e. VB.Net / C#


    So the flow of the program, all the syntax, the if/then statements & variable declaration etc is specific to that language, but objects you create to do stuff with (i.e. a filestream / directory info etc) are generic.

    I work in vb.net but can just about follow examples in C#.
Children
No Data