![]() (Older Pascal code assigned to a variable with the same name as the function). Delphi creates this variable for you at the function start, with the correct return data type. In both cases, the returned value is passed by assigning to the Result pseudo variable. However, using the out or var keyword before a parameter allows the parameter to be treated as variable to contain return values. ![]() Only one value can be returned from a function. Only one value can be returned from a function.ĭefines a function that is passed one or more parameters, and returns a data type. See the SubRoutines tutorial for details on using functions.ĭefines a function that simply returns a data type. The Function keyword defines a subroutine that returns a value. Delphi Basics : Function command Delphi Basicsĭefines a subroutine that returns a valueįunction Name : Return type
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |