StrFind in x++ :
static void BIT_StrFind(Args _args)
{
str a, b, c, d;
int pos1, pos2, pos3;
;
a = ".000-10.00000280";
pos1 = strfind(a, '.', 1, strlen(a));
b = strdel(a,pos1, 1);
pos2 = strfind(b, '-', 1, strlen(b));
c = strdel(b, pos2, 1);
pos3 = strfind(c, '.', 1, strlen(c));
d = strdel(c, pos3, 1);
info(strfmt("%1", d));
}
static void BIT_StrFind(Args _args)
{
str a, b, c, d;
int pos1, pos2, pos3;
;
a = ".000-10.00000280";
pos1 = strfind(a, '.', 1, strlen(a));
b = strdel(a,pos1, 1);
pos2 = strfind(b, '-', 1, strlen(b));
c = strdel(b, pos2, 1);
pos3 = strfind(c, '.', 1, strlen(c));
d = strdel(c, pos3, 1);
info(strfmt("%1", d));
}
0 comments:
Post a Comment