Beispiel #1
0
int TSs::SearchY(const int& X, const TStr& Str) const {
    int YLen=GetYLen();
    for (int Y=0; Y<YLen; Y++) {
        if (Str==GetVal(X, Y)) {
            return Y;
        }
    }
    return -1;
}
Beispiel #2
0
int TSs::GetFldY(const TStr& FldNm, const TStr& NewFldNm, const int& X) const {
  for (int Y=0; Y<GetYLen(); Y++){
    if (GetXLen(Y)>X){
      if (GetVal(X, Y).GetTrunc()==FldNm){
        if (!NewFldNm.Empty()){GetVal(X, Y)=NewFldNm;}
        return Y;
      }
    }
  }
  return -1;
}
Beispiel #3
0
int TSs::GetFldX(const TStr& FldNm, const TStr& NewFldNm, const int& Y) const {
  if (GetYLen()>Y){
    int XLen=GetXLen(Y);
    for (int X=0; X<XLen; X++){
      if (GetVal(X, Y).GetTrunc()==FldNm){
        if (!NewFldNm.Empty()){GetVal(X, Y)=NewFldNm;}
        return X;
      }
    }
    return -1;
  } else {
    return -1;
  }
}
Beispiel #4
0
void TSs::DelX(const int& X) {
    int YLen=GetYLen();
    for (int Y=0; Y<YLen; Y++) {
        CellStrVV[Y]->V.Del(X);
    }
}