解决方案 »
- TTreeView 的背景图片怎么弄啊。
- query1.SQL.Add | come in baby
- 关于post提交!
- delphi中Web Service自定义类型返回
- 加载Active X外部控件出错??
- 为什么我照李维的系统篇,设置SocketConnection,为什么在ClientDataSet中没有ProviderName列表
- 数学问题,有关三角函数
- 有什么最简单的方法能得到选中的节点的所有子节点的个数?不赊帐,不赊帐。
- 在DBGRID中,用Case语句将指定的值转化为其它字符(比如数据库中'M'显示为'女')时遇到问题。
- 如何截获其他程序调用的api,而转入执行你的代码?
- VirtualStringTree连接数据库实时刷新问题
- sql语句的问题
delphi Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
fsScript1.Clear;
fsScript1.Lines.Text := Memo1.Lines.Text;
fsScript1.Parent := fsGlobalUnit;
fsScript1.SyntaxType := 'PascalScript';
if fsScript1.Compile then
fsScript1.Execute
else
ShowMessage(fsScript1.ErrorMsg);
end;
FastScript Code:var
s: TStringList;
I: Integer;begin
//ShowMessage('Hello FastScript');
s := TStringList.Create;
try
s.Add('a');
s.Add('b'); ShowMessage(s.Text);
finally
s.Free;
end;end.