|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 3 of 3 total|
|function parameters can only be const?|
|Mon, May 6 2013 10:12 PM||Permanent Link|
I notice that in function parameter declarations,
"var myVar : integer" is not allowed
"const myVar : integer" is allowed
"myVar : integer" is allowed
None of these allow returning a value after the function is called - is that by design?
I have a function that returns an object (TPanel) in the result variable, but I would also like to return it's ordinal position in the controls array as an integer var parameter.
function TfrmMain.GetPanelByTag(const t : integer; indx : integer) : TPanel;
|Tue, May 7 2013 7:35 AM||Permanent Link|
can EWB. An old days hack like using a member variable will of course work around
|Tue, May 7 2013 4:41 PM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< None of these allow returning a value after the function is called - is
that by design? >>
left out of the compiler until I can come up with a solution with reasonable