精品人妻伦一区二区三区久久,狼友av永久网站免费极品在线,欧美日韩黄色大片,香港三日本8a三级少妇三级99

停車場(chǎng)系統(tǒng)源程序之初始化程序

來源:譽(yù)澄智能 2012/7/10 14:24:04??????點(diǎn)擊:

 TmrInit.Enabled := false;
    with qryComm do
    begin

        Close;
        SQL.Clear;
        SQL.Add('SELECT * FROM JY_Opreation_thing');
        Open;
        while not Eof do
        begin
            cmbUserName.Items.Add(trim(FieldByName('操作員姓名').AsString));
            Next;
        end;
    end;
    ClearData;
    cmbUserName.ItemIndex := RIniInt('MONITOR','LastLogon', -1);
    RefreshInPrk;
    comm1.CommName :='COM'+IntToStr(RiniInt('MONITOR','Ledcom1',0)+1);
    comm2.CommName :='COM'+IntToStr(RiniInt('MONITOR','Ledcom2',0)+1);
    comm3.CommName :='COM'+IntToStr(RiniInt('MONITOR','Ledcom3',0)+1);
  try
  comm1.StartComm;
  except
      ShowMessage('打開LED1串口錯(cuò)誤,請(qǐng)檢查是否有其它程序占用端口,或者進(jìn)入后更改端口并重起!');
  end;

  try
  comm2.StartComm;
  except
      ShowMessage('打開LED2串口錯(cuò)誤,請(qǐng)檢查是否有其它程序占用端口,或者進(jìn)入后更改端口并重起!');
  end;

   try
  comm3.StartComm;
  except
      ShowMessage('打開LED3串口錯(cuò)誤,請(qǐng)檢查是否有其它程序占用端口,或者進(jìn)入后更改端口并重起!');
  end;
    EditPsw.SetFocus;