-
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
String as a folder name
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 20 Jahren, 11 Monaten von jasmina.zlender@erl16.siemens.de aktualisiert.
-
AutorBeiträge
-
Januar 13, 2004 um 7:40 pm Uhr #12535jasmina.zlender@erl16.siemens.deMitglied
There is a string in FlexPro formula. How can I ask if there is a folder that has this string as name?In VBA I use is Nothing operator in such cases.
Januar 13, 2004 um 8:25 pm Uhr #8198jasmina.zlender@erl16.siemens.deMitgliedThere is a string in FlexPro formula. How can I ask if there is a folder that has this string as name?In VBA I use is Nothing operator in such cases.
Januar 13, 2004 um 8:25 pm Uhr #8868Bernhard KantzTeilnehmerA possible solution could be the following: Create a new formula, rename it to IsFolder and paste the following text into the formula editor:
arguments strFolder dim Err try $strFolder : ".FLD"$.Name catch Err return FALSE End return TRUE
Then you could call this helper formula like this:
If IsFolder("Folder") Then ... If IsFolder("AFolderAnotherFolder") Then ...
The formula IsFolder tries to convert the object name into a reference to the object. If the object exists this is possible and accessing the Name property of the folder is a valid operation. Otherwise an error will occur which will be catched by the catch statement. The variable Err contains the error message as a string, but we do not need it here.
Support
support@weisang.com -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.