小编del*_*sql的帖子

如何在Delphi中检查字符串是否包含子字符串?

String content = "Jane";
String container = 'A.Sven,G.Jane,Jack'; // This is the string which i need to be searched with string content
Run Code Online (Sandbox Code Playgroud)

boolean containerContainsContent = StringUtils.containsIgnoreCase(container, content); // I used to write like this in java

我是Delphi的新手.Delphi中是否有contains命令或执行相同操作的任何其他命令?

delphi delphi-7

18
推荐指数
2
解决办法
5万
查看次数

Delphi 2007中缩进代码的快捷方式

有没有办法在delphi中缩进代码?我必须处理具有数千行代码的程序。我以前工作过的eclipse中,我使用 CTRL + SHIFT + F通过格式化制表符/空格来格式化所有代码,并且还以一种无需水平滚动即可看到的方式划分代码行。有没有办法在德尔福做同样的事情?

delphi delphi-2007

5
推荐指数
2
解决办法
3130
查看次数

查找动态数组平均值的最简单方法

我创建了一个动态数组,并将值传递给它.是否有找到动态数组平均值的快捷方式.

var
  TheMin, TheMax: Integer;  
  x: array of Integer; //Dynamic array declaration
....
TheMin := MinIntValue(x);//I am able to retrieve the minium value of the dynamic array
TheMax := MaxIntValue(x);//I am able to retrieve the maximum value of the dynamic array 
Run Code Online (Sandbox Code Playgroud)

还有其他方法可以使用数学库.

delphi dynamic-arrays

1
推荐指数
1
解决办法
519
查看次数

如何在不使用任何第三方库的情况下在Delphi 2007中将Tiff图像加载到Timage中?

我试图用来image1.Picture.LoadFromFile(MyTiffFile)加载tiff文件Timage,但不支持tiff.

有没有办法在不使用任何第三方库的情况下实现这一目标?

delphi tiff delphi-2007

-2
推荐指数
1
解决办法
502
查看次数

标签 统计

delphi ×4

delphi-2007 ×2

delphi-7 ×1

dynamic-arrays ×1

tiff ×1