Thank you for your answer already.
Now I have come up with this bit of code.
function thermite():char;
begin
choosenOP.Picture.LoadFromFile('thermite.png');
OP_name.Caption := 'THERMITE';
end;
Hence I know next to nothing about the creation of a function I'll have to bother your with my stupidity.
For me it sounds as if I MUST assign a datatype to the function witch I did by choosing 'char'. As far as I understand it the datatype is more or less a placeholder as the function does not deliver a result of some sort. Is my assumption correct?
However when i start to compile the code, I get error messages saying that the identifiers "choosenOP" and "OP_name" could not be found.
What am I doing wrong there?
~itzghee
Scope rules of identifiers are mostly looked at like a family history tree, that is, the compiler will automatically see identifiers that way, it can see them currently local and backwards but if does not see them forward, at least not with out some help.
In your example, you assume you should be able to see those identifiers but you didn't because they most likely live inside a class and your function is outside that class
Its like being in a house with a one way mirror, you can look out like you could if you were inside a class but those outside the class can not look in, unless there is some help to let you in.
Getting to the function return types..
In the body of the function, setting the value to your returning type can be done two ways...
RESULT := ?
or
Name_OF_Your_FUCNTION := ?
etc..
hope that gives you some more insight,,.,.