9,18 → 9,11 |
|
void UrlsHistory::GoBack() |
{ |
WriteDebug(#UrlHistory); |
//find_symbol(#UrlHistory, '|') |
|
j = strlen(#UrlHistory); |
WHILE(UrlHistory[j] <>'|') && (j > 0) j--; |
IF (j > 0) UrlHistory[j] = 0x00; |
WHILE(UrlHistory[j] <>'|') && (j > 0) { |
copystr(#UrlHistory[j], #URL); |
j--; |
} |
j = find_symbol(#UrlHistory, '|') -1; //òåêóùàÿ ñòðàíèöà |
if (j<=0) return; |
UrlHistory[j] = 0x00; |
|
j = find_symbol(#UrlHistory, '|'); //ïðåäûäóùàÿ ñòðàíèöà -> îíà íàì è íóæíà |
copystr(#UrlHistory + j, #URL); |
copystr(#URL, #editURL); |
WB1.ShowPage(#URL); |
} |