Purpose Decide between using JavaScript, VBScript, VB.NET or C# for a particular task. GuiXT provides interfaces to the programming languages JavaScript and VBScript and to all .NET languages such as VB.NET or C# . These interfaces allow us to implement our own functions if no suitable GuiXT keyword is available that fulfills a particular task. Before starting the implementation we need to decide which language we want to use. |
Recommendations VBScript is now called a "legacy programming language" by Microsoft
whereas JavaScript is recognized as the leading Web programming
language. 2. You can only retain your existing VBScript functions in the 32-bit SAP GUI Microsoft does not provide a 64-bit version of the script control that GuiXT uses for VBScript execution. Possible workaround: You can install 3rd party alternatives such as "Tablacus Script Control 64" if needed. CallVBS / CallVBAsync will then work again without requiring any adjustments to the GuiXT profile or script. 3. Conversion of existing VBScript functions to JavaScript The conversion of existing VBScript functions to JavaScript, if you decide to do so, can be accomplished with moderate effort. For example, VBScriptis changed to JavaScript There are some caveats:
4. JavaScript or .NET (VB.NET / C#) Both choices can make sense, depending on the project type:
5. VB.NET or C# Our .NET samples here are mostly written in VB.NET, but it is completely up to you to use C# instead of VB.NET. When you translate existing VB code to C#, keep in mind that C# is case sensitive.
|
Components |