Jump to content
Sign in to follow this  
c0d3r

variable might not have been intialized?

Recommended Posts

Could anyone help what the warning was about,  Codes was fine in Delphi2007, but not in Delphi 10.4.1:

 

image.thumb.png.45d66d782a854b233ca9de908aab6de9.png

 

image.thumb.png.5878d49400d7de522c78a3575064aca6.png

 

ServiceMethod:  TServiceMethod;   which is a  type of function (Sender: TObject, ...): variant of object;

Edited by c0d3r

Share this post


Link to post

Figured it out, the type should be a type of function,  not object function.

Edited by c0d3r

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×