OMG! Yes, you are rigth, i did not declare the Tform1 (class) before the function name at the begining, but it was because originally the function was not declared in the same unit as form1 (neither the TEdit variable to be honest)
It will be nice some kind of document "good techniques to structure your program in FP using lazarus" or so; tips, common used sintaxys... etc etc
Once again, thank you very much.
(I just read your avatar; i created several games using AGS
)