On 11/21/2013 07:31 AM, Martin Schreiber wrote:
> As usual I still don't understand.
> "
> procedure strfunc(): msestring;
> begin
> return 'The string result';
> end;
Slight Advantage of "Result":
procedure strfunc(x: Boolean): msestring;
begin
Result := 'The string result';
if x then
Result := 'Not The string result';
Result := '>>>' + Result + '<<<'
end;
Here you don't need to define a variable for the intermediate value.
-Michael
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk