我需要TStringGrid在Delphi 的单元格中更改文本颜色.
只是一个细胞.我怎样才能做到这一点?
我有一个在SQL Server中工作的查询,但是当我在delphi中的ado查询中保存它时它不起作用并停止此错误:
Incorrect syntax near 'GO'
Run Code Online (Sandbox Code Playgroud)
但是下面的代码是正确的,没有任何错误.我在sql server中测试过它.下面的代码不是Regular,因为我从delphi复制并通过它.
我的查询:
create function GetTedad(@pfcode INT, @pdcode INT) returns int
as begin declare @Tedad int;
select @Tedad= sum(t2.tedade_avalie) from Tbl_avalie_salon t2 where t2.FCode = @pfcode and t2.DCode = @pdcode
return (@Tedad); end;
GO
create function getSumBSen2(@pfcode INT, @pdcode INT, @pSen INT) returns int
as begin declare @r int;
select @r= sum(t2.t_shab + t2.t_rooz) from tbl_talafat_dan t2 where t2.FCode = @pfcode and t2.DCode = @pdcode and t2.sen <= @pSen;
return (@r); end;
GO
select …Run Code Online (Sandbox Code Playgroud)