|
Returns a defined part of a string |
|
SourceString |
The string from where we are extracting the information. |
StartPos |
The extraction position in the string (0 = first character). |
Length |
The length of the chunk that we are extracting. |
|
function string 255 XMLReplQuotes(string instr)
begin
string 255 outstr;
integer i,ln;
string 1 cs;
outstr = "";
ln = len(instr);
for (i=0;i<ln;i=i+1) begin
cs = mid(instr,i,1);
if (asc(cs)==34) then begin //"
outstr = outstr & """;
end else begin
outstr = outstr & cs;
end;
end;
XMLReplQuotes = outstr;
return;
end;
««