比如又一段话,我现在象截取其中一部分。怎么做?
解决方案 »
- 能不能将暴风影音用到delphi里?
- delphi调用带有对话框的dll(vc写的)时出现的问题,请教各位了
- 请教 两个WebBrowser怎么共享Cookies?如果修改程序的User-Agent?
- 关于combobox,很小的一个问题
- 大家有没有编写或保存ico的程序源码呢?小弟找了很久,好象delphi没有这方面的例子。在线等待。
- 求急!!如何在del6中取得execl表格WorkSheet里已有记录的条数?!
- idftp.list怎么用?
- combobox除了存text,还能存value?也就是说我选择的是text,但对应的是value。
- 急、怎样清空对Image控件刷新或者清空上面的所有内容,如答对,一定给分!谢谢!
- 使用Timer控件后,如何在Panel面版上显示时间,该语句如何写?
- 关于dbgrideh的问题!
- 用Socket接收二进制的问题,急急急急急。
var
you_say:widestring;
begin
you_say:='我是中国人';
showmessage(copy(you_say,3,3));
end;
S: 要截的字符串;
Index: 截取开始位置;
Count: 截取的长度;
OK
s: string;
index, count: integer;
begin
s := 'i love i love you i i';
index := pos('i', s) + 1;
index := posex('i', s, index) + 1;
count := posex('i', s, index) - index;
showmessage(copy(s, index, count));
end;
function LeftStr(const AText: WideString; const ACount: Integer): WideString; overload;
function RightStr(const AText: WideString; const ACount: Integer): WideString; overload;