-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Folder Referencing
Home > Community > Automation and VBA > Folder Referencing
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 10 Jahren, 8 Monaten von Fiona Vidal aktualisiert.
-
AutorBeiträge
-
März 12, 2014 um 10:42 am Uhr #12852Fiona VidalTeilnehmer
Good morning,
I would like to reference folders in the Folders window in sequence without using specific folder names but the order that they appear in the window – is this possible?
Many thanks for your help!
März 12, 2014 um 10:42 am Uhr #8512Fiona VidalTeilnehmerGood morning,
I would like to reference folders in the Folders window in sequence without using specific folder names but the order that they appear in the window – is this possible?
Many thanks for your help!
März 14, 2014 um 8:59 am Uhr #9348Bernhard KantzTeilnehmerWhen using the .Objects property of a Folder object with argument fpObjectTypeFolder the sequence of the folder objects in the FPObjects collection should be the same as in the Folder window (not in the Object List window). The following procedure outputs all folders in the root of the active project database.
Public Sub ShowFolders() Dim oColl As FpObjects Set oColl = ActiveDatabase.RootFolder.Objects(fpObjectTypeFolder) Dim sRes As String Dim oObj As FpObject For Each oObj In oColl sRes = sRes & oObj.Name & vbCrLf Next MsgBox sRes End Sub
Specifying a string pattern instead of fpObjectTypeFolder can be used to narrow the collection of folders. For example the FPScript string “^Data\\d{3}\\.FLD$” will enumerate all folders (\\.FLD$) whose names start with Data (^Data) followed by three digits (\\d{3}). Note the double backslash because its use as escape character in string literals. More on regular expressions can be found in the Online Help for Objects (property) in the Index.
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.