Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| speedy:30_modules:script [2024/11/28 12:53] – [ParamName_onBuild(timing, handling, dictionary)] speedy | speedy:30_modules:script [2026/06/12 07:42] (aktuell) – [Speedy.DoFileExport] speedy | ||
|---|---|---|---|
| Zeile 83: | Zeile 83: | ||
| === Application.GetRootPath === | === Application.GetRootPath === | ||
| Gibt den Root Path, wie in der dwKernel.ini eingestellt, | Gibt den Root Path, wie in der dwKernel.ini eingestellt, | ||
| - | \\ | + | <code vbscript> |
| + | rootpath = Application.GetRootPath() | ||
| + | MsgBox " | ||
| + | </ | ||
| === Application.GetVaultCount === | === Application.GetVaultCount === | ||
| Gibt die Anzahl der Vault datenbank zurück. \\ | Gibt die Anzahl der Vault datenbank zurück. \\ | ||
| - | \\ | + | <code vbscript> |
| + | count = Application.GetVaultCount() | ||
| + | MsgBox "Vault Count = " & count | ||
| + | </ | ||
| === Application.GetVaultDbAt(iIndex) === | === Application.GetVaultDbAt(iIndex) === | ||
| Gibt das ADODB.Connection Object der entsprechenden Vault Datenbank zurück. \\ | Gibt das ADODB.Connection Object der entsprechenden Vault Datenbank zurück. \\ | ||
| - | \\ | + | <note warning> |
| + | Diese Funktion liefert kein Ergebnis, wenn mit dem Datenbank-Direkttreiber „MYSQL“ gearbeitet wird. | ||
| + | </ | ||
| === Application.GetVaultNameAt(iIndex) === | === Application.GetVaultNameAt(iIndex) === | ||
| Gibt den Namen der Vault Datenbank zurück. \\ | Gibt den Namen der Vault Datenbank zurück. \\ | ||
| - | \\ | + | <code vbscript> |
| + | count = Application.GetVaultCount() | ||
| + | for i=0 to count-1 | ||
| + | name = Application.GetVaultNameAt(i) | ||
| + | | ||
| + | next | ||
| + | </ | ||
| === Application.GetTempFileName === | === Application.GetTempFileName === | ||
| Zeile 131: | Zeile 144: | ||
| === Application.InvokeCommand(sCallBack, | === Application.InvokeCommand(sCallBack, | ||
| Ruft einen speedy Zusatzbefehl auf. \\ | Ruft einen speedy Zusatzbefehl auf. \\ | ||
| - | \\ | + | Die Zusatzbefehle werden von den Zusatzmodulen definiert. |
| + | ^Befehl^Parameter^Beschreibung^ | ||
| + | |OnBomEdit | | Stückliste des aktuell selektierten Objekts bearbeiten | | ||
| + | |OnBomDelete | | | | ||
| + | |OnBomCompare | | | | ||
| + | |OnBomPrint | | | | ||
| + | |OnBomSave | | | | ||
| + | |OnBomShow | | | | ||
| + | |OnBomShowAll | | | | ||
| + | |OnBomShowStructure | | | | ||
| + | |OnEplanImport | | | | ||
| + | |OnProjectBom | | | | ||
| + | |OnEditClass | | | | ||
| + | |LanguageSearch | | | | ||
| + | |LanguageAnalyse | | | | ||
| + | |LanguageEdit | | | | ||
| + | |OnOutput | | | | ||
| + | |ToGo | | | | ||
| + | |GoOffline | | | | ||
| + | |GoOnline | | | | ||
| + | |CompareConflict | | | | ||
| + | |GoOfflineDirect | | | | ||
| + | |GoOnlineDirect | | | | ||
| + | |OnBulkload | | | | ||
| + | | | | | | ||
| === Application.HasCommand(sCallBack) === | === Application.HasCommand(sCallBack) === | ||
| Zeile 188: | Zeile 225: | ||
| Die Funktion liefert kein Ergebnis aus dem SQL-Statement zurück. \\ | Die Funktion liefert kein Ergebnis aus dem SQL-Statement zurück. \\ | ||
| < | < | ||
| - | Call DbExecute("", | + | Call Application.DbExecute("", |
| </ | </ | ||
| \\ | \\ | ||
| Zeile 201: | Zeile 238: | ||
| Beispiel: | Beispiel: | ||
| <code vbscript> | <code vbscript> | ||
| - | Call DbQuery(result, | + | Call Application.DbQuery(result, |
| Ergebnis: | Ergebnis: | ||
| Zeile 232: | Zeile 269: | ||
| <code sql> | <code sql> | ||
| <code vbscript> | <code vbscript> | ||
| - | Call DbLookup(result, | + | Call Application.DbLookup(result, |
| - | Call DbLookup(result, | + | Call Application.DbLookup(result, |
| </ | </ | ||
| + | |||
| + | <code vbscript> | ||
| + | If Application.DbLookup(result, | ||
| + | | ||
| + | End If | ||
| + | </ | ||
| + | |||
| \\ | \\ | ||
| Zeile 258: | Zeile 302: | ||
| s = Application.GetDocumentProperty(dictionary.item(" | s = Application.GetDocumentProperty(dictionary.item(" | ||
| </ | </ | ||
| - | \\ | + | |
| + | === Application.DumpDictionary(File, | ||
| + | Schreibt den Inhalt des Dictionaries in die Datei //File//. | ||
| + | |||
| + | === Application.ShowDictionary(Title, | ||
| + | Zeigt den Inhalt des Dictionaries in einem Dialog an. | ||
| ==== Clipboard - Objekt ==== | ==== Clipboard - Objekt ==== | ||
| Globales Objekt mit Funktionen zur Zwischenablage. | Globales Objekt mit Funktionen zur Zwischenablage. | ||
| + | |||
| === Clipboard.Clear === | === Clipboard.Clear === | ||
| Leert die Zwischenablage | Leert die Zwischenablage | ||
| - | \\ | ||
| === Clipboard.Copy(Text) === | === Clipboard.Copy(Text) === | ||
| Kopiert den Text in die Zwischenablage | Kopiert den Text in die Zwischenablage | ||
| - | \\ | ||
| === Clipboard.Paste === | === Clipboard.Paste === | ||
| Zeile 274: | Zeile 323: | ||
| <code VBScript> | <code VBScript> | ||
| \\ | \\ | ||
| + | |||
| + | ==== Path - Objekt ==== | ||
| + | Globales Objekt mit Funktionen zu Pfadangaben und Dateinamen. | ||
| + | |||
| + | === String Path.AddBackslash(String pszPath) === | ||
| + | === String Path.AddExtension(String | ||
| + | === String Path.Append(String | ||
| + | === String Path.BuildRoot(int | ||
| + | === String Path.Combine(String pszDir, String pszFile) === | ||
| + | === Boolean Path.FileExists(String pszPath) === | ||
| + | === String Path.FindExtension(String pszPath) === | ||
| + | === String Path.FindFileName(String pszPath) === | ||
| + | === Boolean Path.IsDirectory(String pszPath) === | ||
| + | === Boolean Path.IsFileSpec(String pszPath) === | ||
| + | === Boolean Path.IsPrefix(String pszPrefix, String pszPath) === | ||
| + | === Boolean Path.IsRelative(String pszPath) === | ||
| + | === Boolean Path.IsRoot(String pszPath) === | ||
| + | === Boolean Path.IsSameRoot(String pszPath1, String pszPath2) === | ||
| + | === Boolean Path.IsSystemFolder(String pszPath, Integer | ||
| + | === Boolean Path.IsUNC(String pszPath) === | ||
| + | === Boolean Path.IsURL(String pszPath) === | ||
| + | === String Path.MakePretty(String pszPath) === | ||
| + | === Boolean Path.MatchSpec(String pszFile, | ||
| + | === String Path.QuoteSpaces(String lpsz) === | ||
| + | === String Path.RelativePathTo(String pszFrom, Integer | ||
| + | === String Path.RemoveArgs(String pszPath) === | ||
| + | === String Path.RemoveBackslash(String pszPath) === | ||
| + | === String Path.RemoveExtension(String pszPath) === | ||
| + | === String Path.RemoveFileSpec(String pszPath) === | ||
| + | === String Path.RenameExtension(String | ||
| + | === String Path.SkipRoot(String pszPath) === | ||
| + | === String Path.StripPath(String pszPath) === | ||
| + | === String Path.StripToRoot(String pszPath) === | ||
| + | === String Path.Undecorate(String pszPath) === | ||
| + | === String Path.UnquoteSpaces(String lpsz) === | ||
| + | |||
| + | |||
| + | |||
| + | ==== Shell - Objekt ==== | ||
| + | Globales Objekt mit Funktionen zur Windows-Shell. | ||
| + | |||
| + | === Shell.ExecuteCommand(Command, | ||
| + | Führt ein Programm (Command) aus. | ||
| \\ | \\ | ||
| + | ==== Speedy - Objekt ==== | ||
| + | Globales Objekt mit speziellen speedy-Funktionen rundum Dokumente. | ||
| + | |||
| + | === Speedy.DoFileView === | ||
| + | === Speedy.DoFileOpen === | ||
| + | === Speedy.DoFileCheckout === | ||
| + | === Speedy.DoFileCheckoutIn === | ||
| + | === Speedy.DoFilePendingapproval === | ||
| + | === Speedy.DoFileApprove === | ||
| + | === Speedy.DoFileRelease === | ||
| + | === Speedy.DoFileRevokeRelease === | ||
| + | === Speedy.DoFileCheckin === | ||
| + | === Speedy.DoFileProperties === | ||
| + | === Speedy.DoFileAttachDirect === | ||
| + | === Speedy.DoFileAttach === | ||
| + | === Speedy.DoCheckInWorkspace === | ||
| + | === Speedy.DoShellOpen === | ||
| + | === Speedy.DoOpenLinkToOrigin === | ||
| + | === Speedy.FindOrigin === | ||
| + | === Speedy.DoCreateFileFromTemplate === | ||
| + | === Speedy.ActivateExplorer === | ||
| + | |||
| + | |||
| + | === Speedy.DoCopyOut === | ||
| + | |||
| + | Boolean Speedy.DoCopyOut(String Docno, String FileOrExt, String Path) | ||
| + | |||
| + | === Speedy.DoFileExport === | ||
| + | Exportiert die Dokumente (siehe auch [[speedy: | ||
| + | |||
| + | Speedy.DoFileExport(ByRef Result, ByVal Documents, ByVal DocTypes, ByVal Extensions, ByVal Target, ByVal Options) | ||
| + | |||
| + | Return Boolean \\ | ||
| + | True := Export war erfolgreich \\ | ||
| + | False := Es ist ein Fehler aufgetreten | ||
| + | |||
| + | ^Paramter^Beschreibung^ | ||
| + | |Result | Liste der exportierten Dateien. | | ||
| + | |Documents | Liste der zu exportierenden Dokumente. | | ||
| + | |DocTypes | Liste der zulässigen Dokumenttypen. | | ||
| + | |Extensions | Liste der zulässigen Dateiendungen. | | ||
| + | |Target | Zielverzeichnis, | ||
| + | |Options | Export-Optionen | | ||
| + | |||
| + | Optionen | ||
| + | ^Option^Beschreibung^ | ||
| + | |zipped | Als Zip packen. Wenn nicht definiert entscheidet die Dateiendung von Target. true/false | | ||
| + | |sendmail | Als Email versenden. true/false | | ||
| + | |versiontype | -3 := ActiveVersion \\ -2 := CurrentVersion \\ -1 := LastRevision \\ >=0 := Revision | | ||
| + | |buildstructure | Struktur erhalten true/false | | ||
| + | |undecorate | | | ||
| + | |prefix | | | ||
| + | |suffix | | | ||
| + | |||
| + | <code vbscript> | ||
| + | Documents = " | ||
| + | DocTypes = " | ||
| + | Extensions = " | ||
| + | Target = " | ||
| + | Options = " | ||
| + | |||
| + | if Speedy.DoFileExport(Result, | ||
| + | end if | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ==== Pdf - Objekt ==== | ||
| + | Globales Objekt mit speziellen Pdf-Funktionen. | ||
| + | |||
| + | === Pdf.Stamp === | ||
| + | |||
| + | Boolean Pdf.Stamp(String PdfSource, String StampTemplate, | ||
| + | |||
| + | |||
| + | === Pdf.MergeFiles === | ||
| + | |||
| + | Boolean Pdf.MergeFiles(StringArray Files, ByRef Variant Target, Boolean DeleteSource) | ||
| + | |||
| + | === Pdf.MergePath === | ||
| + | |||
| + | Boolean Pdf.MergePath(String InputWildcard, | ||
| + | |||
| + | |||
| + | === Pdf.Multistamp === | ||
| + | |||
| + | Boolean Pdf.Multistamp(String PdfFile, String StampFile, String Target) | ||
| + | |||
| + | |||
| + | === Pdf.GetTotalPageCount === | ||
| + | |||
| + | Long Pdf.GetTotalPageCount(String Filename) | ||
| + | === Pdf.GetPageInfo === | ||
| + | |||
| + | Boolean Pdf.GetPageInfo(String Filename, Long nPage, ByRef Variant dAngle, ByRef Variant dWidth, ByRef Variant dHeight) | ||
| + | === Pdf.GetPageFormat === | ||
| + | |||
| + | String Pdf.GetPageFormat(Double width, Double height) | ||
| + | \\ \\ \\ | ||
| ===== speedy.* ===== | ===== speedy.* ===== | ||
| Zeile 813: | Zeile 1004: | ||
| Das Dictionary enthält die Eigenschaften des Dokuments sowie die Eigenschaften des Dateiobjekts. \\ Die internen Eigenschaften Dateiobjekts beginnen mit " | Das Dictionary enthält die Eigenschaften des Dokuments sowie die Eigenschaften des Dateiobjekts. \\ Die internen Eigenschaften Dateiobjekts beginnen mit " | ||
| Wenn das timing-Argument den Wert kUpdateUI hat kann der Dictionary Eintrag für den " | Wenn das timing-Argument den Wert kUpdateUI hat kann der Dictionary Eintrag für den " | ||
| - | < | + | < |
| Public Function FileOperations_onFileExport(ByVal timing, handling, dictionary) | Public Function FileOperations_onFileExport(ByVal timing, handling, dictionary) | ||
| Dim old_target, target, BEN1, ext | Dim old_target, target, BEN1, ext | ||
| Zeile 977: | Zeile 1168: | ||
| |dictionary|Übergibt das Dictionary Objekt| | |dictionary|Übergibt das Dictionary Objekt| | ||
| **Rückgabe: | **Rückgabe: | ||
| - | < | + | < |
| Function OnBrowse(lEventTiming, | Function OnBrowse(lEventTiming, | ||
| OnBrowse = False | OnBrowse = False | ||
| Zeile 1010: | Zeile 1201: | ||
| \\ \\ | \\ \\ | ||
| - | === OnPopulateNew(kBefore, dictionary) === | + | === OnPopulateNew(timing, dictionary) === |
| Wird beim Öffnen des Neu-Dialogs vor dem Erstellen eines neuen Dokuments aufgerufen | Wird beim Öffnen des Neu-Dialogs vor dem Erstellen eines neuen Dokuments aufgerufen | ||
| ^Parameter^Beschreibung^ | ^Parameter^Beschreibung^ | ||
| - | |kBefore | + | |timing |
| |dictionary | Übergibt das Dictionary Objekt | | |dictionary | Übergibt das Dictionary Objekt | | ||
| **Rückgabe: | **Rückgabe: | ||