Link to home
Start Free TrialLog in
Avatar of firekiller15
firekiller15

asked on

vA might not have been initialized

delphi
i have a variable called vA.I can run my program but whenever i close my program my borland IDE shows
   =>[Warning] Main.pas(88): W1036 Variable 'vRecord' might not have been initialized<=

how to solve this...
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

this is just a warning...
somewhere you declared the variable vRecord, for example
var
  vRecord : TDateTime;

You may have then later referred to this, e.g.
Edit1.text := DateToStr(vRecord);

But nowhere did you ever set the value of vRecord, such as
vRecord := Date;
or
vRecord := MyQuery.FieldByName('TheDate').asDateTime;
ASKER CERTIFIED SOLUTION
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial