Copy(DataList.Strings[i],0,11)什么意思?
请解释具体些...
请解释具体些...
解决方案 »
- 100分求一个graphics32的使用问题
- DBCtrlGrid如何去掉滚动条?
- dbgrideh怎样设置金额的显示格式形式,有什么combobox控件支持lookup模式
- 数据库还原,高分求救!
- 文本型字段数字倒入Excel丢失小数位,该怎么处理
- 如何取得浏览器当前地址栏中的内容?
- 请问怎么样才能用TTS使电脑发中文,我就要它发中文,不强求中英文都能发!!!
- 兄弟们超难问题搞了好长时间没进展三方控件问题高手请进。。。。。。。。。。。。。。。。。。。。。。。。。。。。
- angshuangxi(小昂)领补发的分……
- 怎么这么奇怪呀,那位老兄告诉我
- 关于底层的问题!
- 两个ActiveXform之间的如何互相调用数值?
0比较奇怪,你可以试试看,我认为应该是1比较合理。
??? := copy(datalist.strings[i],0,11);
如果没有左边的DD,这句写了也明写。
datalist是tstringlist?
copy你可以看delphi的help啊?
Returns a substring of a string or a segment of a dynamic array.UnitSystemCategorystring handling routinesfunction Copy(S; Index, Count: Integer): string;
function Copy(S; Index, Count: Integer): array;DescriptionS is an expression of a string or dynamic-array type. Index and Count are integer-type expressions. Copy returns a substring or sub array containing Count characters or elements starting at S[Index]. If Index is larger than the length of S, Copy returns an empty string or array.If Count specifies more characters or array elements than are available, only the characters or elements from S[Index] to the end of S are returned.Note: When S is a dynamic array, Copy can only be used as a parameter in a call to a procedure or function that expects an array parameter. That is, it acts like the Slice function when working with dynamic arrays.
//
比如:datalist.strings[i] = '123456789abcdef'的字串。
copy(datalist.strings[i],0,11);
就返回'123456789ab'