27. September 2016 10:30
27. September 2016 10:41
27. September 2016 11:04
27. September 2016 11:14
27. September 2016 12:53
27. September 2016 12:58
aber geht es auch ohne die Lizenz bzw. gibt's eine Alternative?
27. September 2016 16:48
Object.RESET;
Object.SETRANGE(Type,Object.Type::Table);
Object.SETRANGE("Company Name",'');
IF Object.FIND('-') THEN
REPEAT
RecRefTable.OPEN(Object.ID);
IF RecRefTable.FIND('-') THEN
REPEAT
Field.RESET;
Field.SETRANGE(TableNo,Object.ID);
Field.SETFILTER(Type,'%1|%2',Field.Type::Text,Field.Type::Code);
Field.SETRANGE(Class,Field.Class::Normal);
Field.SETRANGE(Enabled,TRUE);
IF Field.FIND('-') THEN
REPEAT
IsPKField := FALSE;
KeyRefTable := RecRefTable.KEYINDEX(1);
REPEAT
FieldRefForKey := KeyRefTable.FIELDINDEX(i);
IF FieldRefForKey.NUMBER = Field."No." THEN
IsPKField := TRUE;
UNTIL (i = KeyRefTable.FIELDCOUNT) OR IsPKField;
IF NOT IsPKField AND (Field.RelationTableNo = 0) THEN BEGIN
FieldRef := RecRefTable.FIELD(Field."No.");
SearchString := FieldRef.VALUE;
IF STRPOS(SearchString,'Whatever') <> 0 THEN BEGIN
ConvertedString := CONVERTSTR(SearchString,'alteZeichen','neueZeichen');
FieldRef.VALUE := ConvertedString;
RecRefTable.MODIFY;
END;
END;
UNTIL Field.NEXT = 0;
UNTIL RecRefTable.NEXT = 0;
UNTIL Object.NEXT = 0;
27. September 2016 17:00
4. Oktober 2016 11:39
5. Oktober 2016 08:29
elroberto hat geschrieben:
- Code:
Object.RESET;
Object.SETRANGE(Type,Object.Type::Table);
Object.SETRANGE("Company Name",'');
IF Object.FIND('-') THEN
REPEAT
RecRefTable.OPEN(Object.ID);
IF RecRefTable.FIND('-') THEN
REPEAT
Field.RESET;
Field.SETRANGE(TableNo,Object.ID);
Field.SETFILTER(Type,'%1|%2',Field.Type::Text,Field.Type::Code);
Field.SETRANGE(Class,Field.Class::Normal);
Field.SETRANGE(Enabled,TRUE);
IF Field.FIND('-') THEN
REPEAT
IsPKField := FALSE;
KeyRefTable := RecRefTable.KEYINDEX(1);
REPEAT
FieldRefForKey := KeyRefTable.FIELDINDEX(i);
IF FieldRefForKey.NUMBER = Field."No." THEN
IsPKField := TRUE;
UNTIL (i = KeyRefTable.FIELDCOUNT) OR IsPKField;
IF NOT IsPKField AND (Field.RelationTableNo = 0) THEN BEGIN
FieldRef := RecRefTable.FIELD(Field."No.");
SearchString := FieldRef.VALUE;
IF STRPOS(SearchString,'Whatever') <> 0 THEN BEGIN
ConvertedString := CONVERTSTR(SearchString,'alteZeichen','neueZeichen');
FieldRef.VALUE := ConvertedString;
RecRefTable.MODIFY;
END;
END;
UNTIL Field.NEXT = 0;
UNTIL RecRefTable.NEXT = 0;
UNTIL Object.NEXT = 0;
8. März 2018 15:03
15. September 2020 14:20