On Thu, Nov 21, 2013 at 9:29 AM, Martin Schreiber <[email protected]> wrote: > On Thursday 21 November 2013 12:38:19 Marcos Douglas wrote: > >> > sub strfunc(): msestring; >> > var >> > result: msestring; >> > begin >> > result:= 'The string result:' >> > if 1 <> 2 then >> > result:= result + 'mumu'; >> > else >> > result:= result + 'koko'; >> > end; >> > end:= result; >> > " >> > probably is too exotic. ;-) >> >> WOW! Exotic too much and worse then use "result" variable. >> > Why? It shows clearly that it is a write only variable which can not be read > and can't be forgotten to set.
"end" is a reserved word, not a variable so it can't receive a value! Better to use "return" or continue using "result", IMO. -- Marcos Douglas ------------------------------------------------------------------------------ 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

