PMS32 Online- Hilfereferenz
Scripting - Verarbeitung von VFP-Scripten in PMS32
Variant = My.Bussines.Scripting.RunScript(tcScript AS STRING , tvP1 AS Variant, tvP2 AS Variant, tvP3 AS Variant , tvP4 AS Variant , tvP5 AS Variant , tvP6 AS Variant , tvP7 AS Variant , tvP8 AS Variant , tvP9 AS Variant) Variant = My.Bussines.Scripting.RunScript(tcScript,tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8,tvP9)
Variant = My.Bussines.Scripting.RunScriptBackground(tcScript AS STRING , tvP1 AS Variant, tvP2 AS Variant, tvP3 AS Variant , tvP4 AS Variant , tvP5 AS Variant , tvP6 AS Variant , tvP7 AS Variant , tvP8 AS Variant) Variant = My.Bussines.Scripting.RunScriptBackground(tcScript,tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8)
Variant = My.Bussines.Scripting.RunScriptFile(tcScriptFile AS STRING , tvP1 AS Variant, tvP2 AS Variant, tvP3 AS Variant , tvP4 AS Variant , tvP5 AS Variant , tvP6 AS Variant , tvP7 AS Variant , tvP8 AS Variant , tvP9 AS Variant) Variant = My.Bussines.Scripting.RunScriptFile(tcScriptFile,tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8,tvP9)
Variant = My.Bussines.Scripting.RunScriptFileBackground(tcScriptFile AS STRING , tvP1 AS Variant, tvP2 AS Variant, tvP3 AS Variant , tvP4 AS Variant , tvP5 AS Variant , tvP6 AS Variant , tvP7 AS Variant , tvP8 AS Variant) Variant = My.Bussines.Scripting.RunScriptFileBackground(tcScriptFile,tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8)
Mandanten-ID. Diese ist in der Datei pms32.pth gespeichert und dient dort zur Zuordnung des Mandante und dessen Pfade.
Auszug aus der Pfaddatei pms32.pth:
*/ Verzeichnis der Microcube - Dateien. Wenn leer dann gleich: cDbfdir
cCubdir = ""
*/ Ein 'anderes' Dokumentenverzeichnis kann angegeben werden. Wenn nicht angegeben dann gleich: cDbfdir+'docs\'
*/ cDocDir = ""
*/ Verzeichnis der Mandantentabellen. Hier ein Beispiel mit UNC Pfaden.
*/ Wird die Freigabe auf dem Server 'versteckt' \pms$\ angegeben, so kann ein Cryptovirius das Verzeichnis nicht finden!
cDbfdir = "\\server\pms$\pms32\daten\demo.32\"
*/ Verzeichnis der Reporttabellen
*/ Gibt man Bilddateien in einem Report mit My.Clients.Path.cFrxDir+'BILDNAME.JPG' an, so kann PMS32 einfach auf einen anderen Rechner kopiert werden!
cFrxdir = "\\server\pms$\pms32\reports\demo.32\"
*/ Beschreibung des Mandanten
cIcx02 = "TESTMANDANT DEMO"
*/ ID der Firmenparameter zum Mandant.
cIdx09 = "DEMO"
*/ Kann unter der Mandanteninformation leer sein, wenn für mehrere Mandanten das 'gleiche' Systemverzeichnis gültig ist.
cSysdir = ""
*/ Willkommens-Information als Hintergrundbild in PMS32
cWelcome= "pms32.htm"
*/ Nummer des Mandanten, beim Einsatz eines BarcodeScanners sollte diese Nummer EINDEUTIG sein!
nNumber = 1
<>
String = My.Bussines.Scripting.cIdx02
*/ Abfrage der Mandanten-ID WAIT WINDOW My.Bussines.Scripting.cIdx02 */ Wenn man mittels VFP Zugriff auf die Applikation braucht: */ 1. vfp9.exe öffenen */ 2. In das Startverzeichnis von PMS32 wechseln (MUSS) CD c:\pms\pms32 */ 3. My Instanziieren My = NEWOBJECT("pmsmy","pmsmyhandler.vcx","pmsmyhandler.app") */ 4. Den letzten aktuellen Mandanten zuweisen My.cIdx02 = My.cIdx02 */ 5. Los gehts...
Mit dieser Property kann der letzte Fehler im Klartext abgerufen werden.
String = My.Bussines.Scripting.cLastError
*/ Vorausgesetzt wird, dass My bekannt ist... LOCAL lcError AS String lcError = My.Bussines.Scripting.cLastError
Methode in der der letzte Fehler auftrat.
Aufbau: [Fehlernummer] [Methode] [Zeilennummer] [Message]
String = My.Bussines.Scripting.cMethod
*/ Abruf... WAIT WINDOW My.Bussines.Scripting.cMethod
Fehlernummer des letzten Fehlers.
Ist der Wert kleiner null, so handelt es sich um einen logischen Fehler.
Number = My.Bussines.Scripting.nError
WAIT WINDOW My.Bussines.Scripting.nError
Zeilennummer, in der der letzte Fehler auftrat
Number = My.Bussines.Scripting.nLine
WAIT WINDOW My.Bussines.Scripting.nLine
Siehe auch : Hauptmenü / Hauptindex / Such Index / Cursor Index / Programm Module / Tabellen Index / Tabellenmodule / Masken Index / Programmcode Index / Servicepacks / My.Struktur / Funktionen / Sonstiges Index
Lokale Benutzerhilfe : Meine eigene Hilfe / Zurück zur PMS32 - Hilfe
Dateiversion:1.0.04#3648 - H.U.DD#SSFF 02.12.2022
Senden Sie Ihren Kommentar zu diesem Thema an das Entwicklungsteam von PMS32
Weitere Informationen finden Sie unter der aktuellen
PMS32 WEB-Hilfe
Die Informationen dieser Mitteilung sind vertraulich und nur für Sie bestimmt. Unbefugtes Weiterleiten,
Veröffentlichen, Kopieren usw. sind untersagt und werden gerichtlich verfolgt.
© PMS Compelec GmbH 2022 ® el-Projekt