In diesem Tutorial kombinieren wir VB.NET Funktionen (Versenden einer E-Mail) mit dem Aufruf von SAP GUI Scripting.
In this tutorial we combine some VB.NET functions (sending an e-mail) with the calling up of SAP GUI scripting.
Wenn Sie mit CallVB oder CallVBAsync eine VB.NET-Funktion aufrufen, können Sie über ein Objekt der Klasse "guinet.guixt" auf GuiXT Scriptvariablen zugreifen.
Purpose In a VB.NET function that has been invoked with CallVB or CallVBAsync you can access GuiXT script variables via the class "guinet.guixt".
Für einfache VB.NET Funktionen reicht es oft aus, zu Test und Fehlersuche mit MsgBox() eine kleine Nachricht auszugeben
When you develop a new VB.NET function to be used in GuiXT you can display test messages with the MsgBox() function
In der VB.NET-Funktion "newcustomer" legen Sie ein Objekt der von Ihnen definierten Klasse "customer" an, setzen ein Attribut ("name") und geben die Objektreferenz an GuiXT zurück
Exmple: In the VB.NET-Funktion "newcustomer" we create a new object of class "customer" and return the object reference to GuiXT
Dabei kann es sich um VB.NET Funktionen handeln, die Sie aus GuiXT mit CallVBAsync aufrufen (Komponente GuiXT Controls) oder um eigene VB.NET Programme, die unabhängig von GuiXT aufgerufen werden.
This can be a call of VB.NET function from GuiXT by using the command CallVBAsync (component GuiXT Controls) or an external VB.NET program that runs independently from GuiXT.
In einem GuiXT Script oder InputScript Das heißt: Die VB.NET-Funktion "hellovb" der Klasse "testclass" der Klassenbibliothek "utilities.dll" wird aufgerufen und das Ergebnis in die GuiXT-Variable V[msg] gestellt.
message"&V[msg]" -status line The VB.NET function "hellovb" of class "testclass" in the class libray "utilities.dll" is executed and the result is set into GuiXT variable V[msg].
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.