-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
String as a signal name in a FPScript formula
- This topic has 2 replies, 2 voices, and was last updated 20 years, 11 months ago by jasmina.zlender@erl16.siemens.de.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
January 12, 2004 at 10:20 pm #12536
There is a string in a FlexPro formula. How to call a signal that has the same name as the value of a string?
January 12, 2004 at 10:33 pm #8199There is a string in a FlexPro formula. How to call a signal that has the same name as the value of a string?
January 12, 2004 at 10:33 pm #8869Bernhard KantzParticipantDo do that, you need to use the FPScript “Indirection” operator $“String”$. E g.:
$"\Data\Signal1"$ // equal to DataSignal1
Note that the backslash characters have to be doubled because the backslash is the escape character in FPScript strings!
You can use the indirection op to call functions also:
$"sin"$(1) // equal to sin(1)
Note that instead of literally specifying the string it is of course possible to use a variable which contains the string.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.