it is not working for me .
Please define "is not working for me".
What happens (compilation error, exception @runtime etc)?
What did you expect to happen?
Which version of Lazarus are you using, which version of the compiler?
Without such information, I don't see how anyone could be of assistence here.
Bart