Edit1.Text:=FormatDateTime('mmmm',varfromdatetime(Table1.lookup('id;code', vararrayof([edit3.Text,edit2.text]), 'salesdate')))
你再试试看。