Return multiple values: Difference between revisions

Content added Content deleted
Line 2,663: Line 2,663:
# Concatenate these values, assigning the concatenated string to a new string (see code below);
# Concatenate these values, assigning the concatenated string to a new string (see code below);
# Write the concatenated string on the console; or
# Write the concatenated string on the console; or
# As is done in C style, obtain the address of the registers and save the value in a number for later manipulation.
# As is done in C style, obtain the address of the record (a pointer) and save the pointer's value in a number for later manipulation.


<syntaxhighlight line="1" start="1">The example record is a record with
<syntaxhighlight line="1" start="1">The example record is a record with
Line 2,688: Line 2,688:
then " " then other string into a return string.
then " " then other string into a return string.
Write the return string on the console.
Write the return string on the console.
</syntaxhighlight>When it is necessary to get the return value of a Win 32 API function, the syntax is as follows:
</syntaxhighlight>When it is necessary to get the return value from a Win 32 API function, the syntax is as follows:


''Call "dllname.dll" "FunctionNameHereIsCaseSensitive" returning a <type>.''
''Call "dllname.dll" "FunctionNameHereIsCaseSensitive" returning a <type>.''