有請------CODE午餐。
type
  TDateOrder = (doMDY, doDMY, doYMD); function GetDateOrder(const DateFormat: string): TDateOrder;
 var
   I: Integer;
 begin
   Result := doMDY;
   I := 1;
   while I <= Length(DateFormat) do
   begin
     case Chr(Ord(DateFormat[I]) and $DF) of
       'Y': Result := doYMD;
       'M': Result := doMDY;
       'D': Result := doDMY;
     else
       Inc(I);
       Continue;
     end;
     Exit;
   end;
 end;1. $DF是啥意思?
2. Inc(I),此函數的用法不懂?
3. Result知道意思﹐但在用法上有點模湖?