Ignore:
Timestamp:
Apr 13, 2010, 1:31:19 PM (15 years ago)
Author:
Kevin Toppenberg
Message:

Bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/Templates/uTemplateFields.pas

    r735 r736  
    550550    //p2 := PosEx(FN_END_TAG,Txt,p1);
    551551    p2 := CloseCharPos(FN_BEGIN_TAG, FN_END_TAG, Txt, p1);
    552     SubStrB := MidStr(Txt,p2+1,99999);    //Changed from 999 to 99999. Some characters were getting lost including the dialog tags that trigger the dialog box   elh  04/08/10
     552    SubStrB := MidStr(Txt,p2+1,StrLen(PChar(Txt))+1);    //Changed from 999 to StrLen(PChar(Txt))+1. Some characters were getting lost including the dialog tags that trigger the dialog box   elh  04/08/10
    553553    FnStr := MidStr(Txt,p1, (p2-p1));
    554554    FnStr := AnsiReplaceText(FnStr,#9,'');
     
    577577    p1 := p1 + FN_OBJ_TAG_LEN;
    578578    p2 := CloseCharPos(FN_BEGIN_TAG, FN_END_TAG, Txt, p1);
    579     SubStrB := MidStr(Txt,p2+1,999);
     579    SubStrB := MidStr(Txt,p2+1,StrLen(PChar(Txt))+1);  //Changed from 999 to StrLen(PChar(Txt))+1. Some characters were getting lost including the dialog tags that trigger the dialog box   elh  04/13/10
    580580    FnStr := MidStr(Txt,p1, (p2-p1));
    581581    FnStr := AnsiReplaceText(FnStr,#9,'');
     
    730730    p1 := p1 + FN_SHOW_TEXT_LEN;
    731731    p2 := PosEx(FN_SHOW_TEXT_END,Txt,p1);
    732     SubStrB := MidStr(Txt,p2+1,999);
     732    SubStrB := MidStr(Txt,p2+1,StrLen(PChar(Txt))+1);   //Changed from 999 to StrLen(PChar(Txt))+1. Some characters were getting lost including the dialog tags that trigger the dialog box   elh  04/13/10
    733733    FnStr := MidStr(Txt,p1, (p2-p1));
    734734    FnStr := GetFormula(FnStr);
     
    799799    p1 := p1 + OBJ_SHOW_TEXT_LEN;
    800800    p2 := PosEx(OBJ_SHOW_TEXT_END,Txt,p1);
    801     SubStrB := MidStr(Txt,p2+1,999);
     801    SubStrB := MidStr(Txt,p2+1,StrLen(PChar(Txt))+1);    //Changed from 999 to StrLen(PChar(Txt))+1. Some characters were getting lost including the dialog tags that trigger the dialog box   elh  04/13/10
    802802    ObjStr := MidStr(Txt,p1, (p2-p1));
    803803    ObjStr := GetTxtObjects(ObjStr);
     
    10981098          p2 := PosEx(FieldIDDelim,FnObjStr,p1+1);
    10991099          Argument := MidStr(FnObjStr,p1+1,(p2-p1)-1);
    1100           SubStrB := MidStr(FnObjStr,p2+1,999);
     1100          SubStrB := MidStr(FnObjStr,p2+1,StrLen(PChar(FnObjStr))+1);
    11011101          CtrlID := StrToIntDef(MidStr(Argument,1,FieldIDLen-1), 0);
    1102           Fld := MidStr(Argument,FieldIDLen,999);
     1102          Fld := MidStr(Argument,FieldIDLen,StrLen(PChar(Argument))+1);
    11031103          if(CtrlID > 0) then begin
    11041104            FoundEntry := FALSE;
     
    11351135        end;
    11361136        SubStrA := MidStr(Temp,1,FnP1-1);
    1137         SubStrB := MidStr(Temp,FnP2+1,999);
     1137        SubStrB := MidStr(Temp,FnP2+1,StrLen(PChar(Temp))+1);
    11381138        if (HTMLMode=true) and (FnObjStr <> '') then begin
    11391139          FnObjStr := HTMLAnswerOpenTag + FnObjStr + HTMLAnswerCloseTag;
Note: See TracChangeset for help on using the changeset viewer.