Re: [fpc-pascal] Question on method pointers

2005-11-05 Thread dhkblaszyk
It works, thanks > > On 05 Nov 2005, at 20:21, [EMAIL PROTECTED] wrote: > >> I have a variable that is of this type and I want to assign the >> result of >> this function to a variable of type extended. I was thinking to do >> it like >> this; >> >> var MyFuncVar: TMyFunc; >> >> MyResult := M

Re: [fpc-pascal] Question on method pointers

2005-11-05 Thread Jonas Maebe
On 05 Nov 2005, at 20:21, [EMAIL PROTECTED] wrote: I have a variable that is of this type and I want to assign the result of this function to a variable of type extended. I was thinking to do it like this; var MyFuncVar: TMyFunc; MyResult := MyFuncVar; But obviously it does not work.

[fpc-pascal] Question on method pointers

2005-11-05 Thread dhkblaszyk
I have a question regarding the assignment of the result of a function. The function is declared as such: TMyFunc = function : extended of Object; I have a variable that is of this type and I want to assign the result of this function to a variable of type extended. I was thinking to do it like t