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
- :
- How to return more than one value from a function?
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
‎Mar 30, 2010
06:55 AM
How to return more than one value from a function?
Hi,
I want to return more than one values from a custom InstallScript function.
For example, I calculate two values inside a function and I want to return both of them. Is there a way?
i.e.
function Div(dividend, divisor)
begin
....// Calculate quotient and remainder
....return quotient;
....return remainder;
end;
-Best regards.
-Yavuz
I want to return more than one values from a custom InstallScript function.
For example, I calculate two values inside a function and I want to return both of them. Is there a way?
i.e.
function Div(dividend, divisor)
begin
....// Calculate quotient and remainder
....return quotient;
....return remainder;
end;
-Best regards.
-Yavuz
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 30, 2010
09:09 AM
You might look into using the BYREF operator to specify arguments you can modify in place (similar to how, for example, SdRegisterUser "returns" the two strings entered by the user).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2010
02:30 AM
This is MSI, so easiest way would be using properties?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2010
06:26 AM
Thanks a lot RobertDickau,
BYREF keyword is EXACTLY what I was looking for 🙂
-Best regards.
-Yavuz
BYREF keyword is EXACTLY what I was looking for 🙂
-Best regards.
-Yavuz