S3_Leo 发表于 2024-6-15 17:26:43

DELPHI 取 - 之前及之后 字串

copy(string,1,pos('-',string)-1)
copy(string,pos('-',string)+1,length(string)-pos('-',string))

页: [1]
查看完整版本: DELPHI 取 - 之前及之后 字串