This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Type conversion (BOOLEAN to STRING)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 15, 2008
10:02 AM
Type conversion (BOOLEAN to STRING)
Hello,
I cannot figure out how I can convert BOOLEAN type to STRING... Anybody knows?
I cannot figure out how I can convert BOOLEAN type to STRING... Anybody knows?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 15, 2008
10:17 AM
You can use the NumToStr function using a BOOL value for the second (NUMBER) parameter.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 28, 2008
02:31 AM
What about converting NUMBER to BOOL? Is there any special function?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 28, 2008
06:45 AM
No. Just use the assignment operator.
BOOLs are just NUMBERS that should contain either of the constants TRUE or FALSE (TRUE is 1 and FALSE is 0). But if used in a condition, a BOOL variable containing *any* value other than 0 evaluates to TRUE.
BOOLs are just NUMBERS that should contain either of the constants TRUE or FALSE (TRUE is 1 and FALSE is 0). But if used in a condition, a BOOL variable containing *any* value other than 0 evaluates to TRUE.