is it possible to declare a string var and give it the result of a function as initial value like this or similar :
var
s : string = myfunction();
Thanks
No, Delphi language (or Object Pascal, whatever it is called at the moment) doesn't support that.
No, but you could do that from the initialization
section of the unit.
EDIT:
var
s : string;
...
initialization
s := myfunction();
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With