procedure TForm1.FormCreate(Sender: TObject);
begin
IdNetworkCalculator1.NetworkAddress.AsString := '192.168.0.48';
IdNetworkCalculator1.NetworkMask.AsString := '255.255.255.240';
Memo1.Lines.Clear;
Memo1.Lines.Values['NetworkClass'] := IdNetworkCalculator1.NetworkClassAsString;
Memo1.Lines.AddStrings(IdNetworkCalculator1.ListIP);
end;
執行後會列出可用的 IP Address
沒有留言:
張貼留言