Link to home
Start Free TrialLog in
Avatar of sal1150
sal1150

asked on

convert Word to WideString

byear , bmonth and bdays are comboboxs (3 comboboxs ).
when I try to run it I finde this massage
[Error] add.pas(210): Incompatible types: 'Word' and 'WideString'

if not IsValidDate(byear.text,bmonth.text,bdays.text) then
   begin
   ShowMessage('It is not correct date');
   bdays.SetFocus ;
   Abort;
   end;
ASKER CERTIFIED SOLUTION
Avatar of Mike Littlewood
Mike Littlewood
Flag of United Kingdom of Great Britain and Northern Ireland 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
for Delphi 6/7 you can use StrToIntDef function instead of StrToInt for error warning,
for example:
if not IsValidDate(StrToIntDef(byear.Text, 0),StrToIntDef(bmonth.Text, 0),StrToIntDef(bdays.Text, 0)) then