AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Pendant zu "move corresponding" in ABAP

Ein Thema von Blackpit · begonnen am 12. Apr 2020 · letzter Beitrag vom 22. Apr 2020
Antwort Antwort
Blackpit

Registriert seit: 27. Feb 2019
77 Beiträge
 
#1

Pendant zu "move corresponding" in ABAP

  Alt 12. Apr 2020, 16:17
Hallo,
als ehemaliger ABAP-Developer vermisse ich immer öfter das in ABAP verfügbare "move corresponding".
Gibt es in Delphi was vergleichbares?
Wie könnte man sonst diese Funktionalität bekommen, könnte man das evtl mit einem Classhelper lösen?

Gruß BP

Geändert von Blackpit (12. Apr 2020 um 16:26 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#2

AW: Pendant zu "move corresponding" in ABAP

  Alt 12. Apr 2020, 21:05
Das gibt es fast nirgends standardmäßig. In C# gibt es Automapper, aber auch das ist eine Erweiterung.

Allgemein würde ich aber eher davon abraten, sowas zu nutzen. Das führt ja tendenziell dazu, dass gewisse Fehler statt Compile- nun zu Runtime-Fehler sind.

Geändert von jfheins (13. Apr 2020 um 15:38 Uhr)
  Mit Zitat antworten Zitat
TigerLilly

Registriert seit: 24. Mai 2017
Ort: Wien, Österreich
1.174 Beiträge
 
Delphi 11 Alexandria
 
#3

AW: Pendant zu "move corresponding" in ABAP

  Alt 13. Apr 2020, 12:06
COBOL kann das auch.

In Delphi kannst du sowas via RTTI machen. Ich kann grad nicht nachsehen, aber Spring4D könnte sowas haben oder QuickLib https://github.com/exilon/QuickLib
  Mit Zitat antworten Zitat
TurboMagic

Registriert seit: 28. Feb 2016
Ort: Nordost Baden-Württemberg
2.815 Beiträge
 
Delphi 12 Athens
 
#4

AW: Pendant zu "move corresponding" in ABAP

  Alt 13. Apr 2020, 17:34
COBOL kann das auch.
Was glaubst du woher ABAP das kann?
Wenn ich mich richtig erinnere ist ABAP sehr stark von COBOL beeinflusst,
wenn man man die objektorientierte Erweiterung weglässt, die zumindest anfänglich
dummerweise beim Methodenaufruf die Anleihe beim Funktionsbaustein (sowas wie eine Prozedur/Funktion)
Aufruf genommen hat. Problem: Funktionsbausteinaufrufe sind sehr Syntax/Zeilenverschwenderisch,
zumal da fast nix optional ist. Gibt's keine Übergabeparameter muss man das trotzdem explizit
so formulieren, auch für fehlende Rückgabeparameter usw.
Damals kostete so ein Aufruf schnell mal 1/3 bis 1/2 Bildschirmseite im Editor...

Ansonsten: ja mittels RTTI müsste man sowas vermutlich bauen können. Ist vermutlich nicht gerade
laufzeiteffizient, aber sollte denke ich technisch machbar sein.

Grüße

TurboMagic
  Mit Zitat antworten Zitat
hoika

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#5

AW: Pendant zu "move corresponding" in ABAP

  Alt 14. Apr 2020, 05:19
Hallo,
die unbehandelten Ausnahmen sollten einem schon zu Denken geben ...
https://help.sap.com/doc/abapdocu_75...e/abapmove.htm

Ich hätte gern mal ein Beispiel (in Delphi),
was den Wunsch veranschaulicht..
Heiko
  Mit Zitat antworten Zitat
TigerLilly

Registriert seit: 24. Mai 2017
Ort: Wien, Österreich
1.174 Beiträge
 
Delphi 11 Alexandria
 
#6

AW: Pendant zu "move corresponding" in ABAP

  Alt 22. Apr 2020, 09:12
Ja, QuickLib hat sowas + heisst dort "Mapping" bzw "AutoMapping".



Zitat:
**QuickLib**
--------

Small delphi/Firemonkey(Windows, Linux, Android, OSX & IOS) and fpc(Windows & Linux) library containing interesting and quick to implement functions, created to simplify application development and crossplatform support and improve productivity.

**Areas of functionality:**

* **Mapping**: Map fields from a class to other class, copy objects, etc..
* **Config**: Use your config as an object and load/save from/to file (Json/Yaml) or Windows Registry.
* **Serialization**: Serialize objects to/from json/Yaml.
* **Scheduling**: Schedule tasks launching as independent threads with retry policies.
* **Threading**: Simplify run and control of multithread background tasks, Thread-safe Lists, queues, etc
* **Data**: Flexible data interchange and storage, allowing several input-output types.
* **Cloud**: Simplify cloud Azure/Amazon file management, send emails and more.
* **Querying**: Indexed Lists, Searchable Lists and Linq query system for generic lists and arrays.
* **Benchmark**: Time elapsed control and benchmark functions.
* **Filesystem**: Process and Services control, file modify monitors and helpers, etc...
* **FailControl**: Fail and Retry policies.
* **Caching:**: Cache string or objects to retrieve fast later.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:20 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz