procedure TForm1.SpeedButton1Click(Sender: TObject);
var
hostip:string;
begin
if not clientsocket1.Active then
begin
if inputQuery('info','Enter Remote Host Ip:',hostip) then clientsocket1.Host:=hostip else clientsocket1.Host:='127.0.0.1';
clientsocket1.Active:=true;
IsNext:=true;
cmdbuff[2]:=0;
timer1.Enabled:=true;
timer3.Enabled:=true;
panel3.Visible:=true;
end;
解决方案 »
- win7 c盘下FileCreate 返回值是8 但实际因为没有权限创建并没有成功
- 下拉框問題。兄台請去看看。
- TImageEnView 控件:如何打印控件中显示的图片,此控件有什么打印之类型的方法?
- 请问大家在DELPHI下如何使用AcceptEx函数呢!!
- 一个fastreport的问题
- QuickReport中那个控件能上下方向显示文字?
- 请问怎样使用鼠标指到菜单栏会使其变颜色????
- 一个非常让我头疼的spcomm的问题,谁解决了我给100分!
- IDE设置问题
- 谁有好的报表控件????
- DBGrid的问题,头痛!高手救救我!
- 在delphi中连接sql server 2000数据库,最少需要几个控件?
var
hostip:string;
begin
if not clientsocket1.Active then
/////////如果ClientSocket1没有连接
begin
if inputQuery('info','Enter Remote Host Ip:',hostip) then
////////////显示一个输入框,提示 'Enter remote Host Ip'。如果是点了确认
clientsocket1.Host:=hostip
///////////设置ClientSocket1的连接地址为刚才的输入地址
else
clientsocket1.Host:='127.0.0.1';
///////////否则设置连接地址为本机127.0.0.1
clientsocket1.Active:=true;
//////////打开连接
IsNext:=true;
cmdbuff[2]:=0;
timer1.Enabled:=true;
timer3.Enabled:=true;
panel3.Visible:=true;
////////////////设置程序的变量,无法解释。
end;
end;