17. Februar 2021 10:04
cr := 13 ;
lf := 10 ;
tab := 9;
FieldToClean := DELCHR(FieldToClean,'=',FORMAT(cr)) ;
FieldToClean := DELCHR(FieldToClean,'=',FORMAT(lf)) ;
FieldToClean := DELCHR(FieldToClean,'=',FORMAT(tab)) ;
Artikelnr999,BeschreibungArtikel999¶
ArtikelNr123,¶
FM Mein Artike¶
ist so cool¶
Artikelnr456,BeschreibungArtikel456¶
Artikelnr789,BeschreibungArtikel789¶
17. Februar 2021 10:49
17. Februar 2021 11:14
FOR li := 1 TO STRLEN(pText) DO BEGIN
lChar := pText[li];
lAscii := lChar;
MESSAGE('Character %1 Ascii Value %2',pText[li],lAscii);
END;
17. Februar 2021 11:34
int i;
int ii;
for I:= 1 to length(FieldToClean)
begin
ii := FieldToClean[i];
end;
17. Februar 2021 11:35
// TempInt = Integer
// FieldTextAsInt = Text[250]
FOR I := 1 TO STRLEN(MyField) DO BEGIN
TempInt := MyField[I];
IF FieldTextAsInt <> '' THEN BEGIN
FieldTextAsInt += '-';
END;
FieldTextAsInt += FORMAT(TempInt);
END;
MESSAGE(FieldTextAsInt);
17. Februar 2021 11:36
17. Februar 2021 12:05
IF AsciiValue = 10 THEN
NewDescription += '*'
ELSE
NewDescription += FORMAT(FieldToClean[li]);
17. Februar 2021 12:14
VAR
CRLF: Text[2];
BEGIN
CRLF :=' ';
CRLF[1] := 13;
CRLF[2] := 10;
Newstring := DELCHR(StringToClean,'=',CRLF);
END;
17. Februar 2021 13:33
fiddi hat geschrieben:
- Code:
CRLF :=' ';
17. Februar 2021 13:47
CRLF :=' ';
17. Februar 2021 15:02
17. Februar 2021 15:40
MakeText(VAR Text : Text[250]) : Integer
// >> TT3138
Text := RemoveHiddenChars(Text);
// << TT3138
Position := 1;
Length := STRLEN(Text);
ReadCharacter(' ',Text,Position,Length);
IF NOT ReadSymbol('?',Text,Position,Length) THEN
EXIT(0);
PartOfText := COPYSTR(Text,Position);
IF PartOfText = '' THEN BEGIN
IF FORM.RUNMODAL(0,StdTxt) = ACTION::LookupOK THEN
Text := StdTxt.Description;
EXIT(0);
END;
StdTxt.Code := COPYSTR(Text,Position,MAXSTRLEN(StdTxt.Code));
IF NOT StdTxt.FIND('=>') OR
(UPPERCASE(PartOfText) <> COPYSTR(StdTxt.Code,1,STRLEN(PartOfText)))
THEN
EXIT(Position);
Text := StdTxt.Description;
EXIT(0);
MakeCode(VAR Text : Text[250]) : Integer
// >> TT3138
Text := RemoveHiddenChars(Text);
EXIT(0);
// << TT3138
RemoveHiddenChars(OriginalText : Text[250]) : Text[250]
// >> TT3138
ReplacementChars[1] := 9; // HT (Tab)
ReplacementChars[2] := 11; // VT (Tab)
ForbiddenChars[1] := 10; // LF (LineFeed)
ForbiddenChars[2] := 12; // FF (FormFeed)
ForbiddenChars[3] := 13; // CR (CarriageReturn)
OriginalText := CONVERTSTR(OriginalText,ReplacementChars,' ');
EXIT(DELCHR(OriginalText,'=',ForbiddenChars));
// << TT3138