|
Retrieves a value from specified window, that has been set with PutWindowString. Note that you do not have to define a field inside window description to use this. |
|
WindowId |
The targeted window. |
WindowStringId |
The name of the window variable that holds the value. |
|
global updating
function Boolean RusTaxComUserTClassOnOKWindow(Integer wn)
begin
record RusTaxComBlock RusTaxComb;
row RusTaxComBlock RusTaxComrw;
integer i,am;
string 200 str;
Boolean res,storef;
BlockLoad(RusTaxComb);
am = MatRowCnt(RusTaxComb);
storef = false;
for (i=0;i<am;i=i+1) begin
MatRowGet(RusTaxComb,i,RusTaxComrw);
str = GetWindowString(wn,"f" & i);
if (str<>RusTaxComrw.FieldData) then begin
RusTaxComrw.FieldData = str;
MatRowPut(RusTaxComb,i,RusTaxComrw);
storef = true;
end;
end;
if (storef) then begin
BlockStore(RusTaxComb);
end;
RusTaxComUserTClassOnOKWindow = true;
return;
end;
««