AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 17:47

Parameter dieser Suchanfrage:

Suche in Thema: Update/Delete Record items in a Stream
Suche alle Beiträge, die von "Der schöne Günther" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 4 von insges. 4 Treffern
Suche benötigte 0.002s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Object-Pascal / Delphi-Language

    AW: Update/Delete Record items in a Stream

      Delphi
      by Der schöne Günther, 27. Apr 2018
    I do get you, and I understand what you want. It's just my personal opinion: I believe there is absolutely no use of putting this much work into all of this when everything you need is already there. It makes no sense to not read and write a few bytes.

    Anyway :), the part above ("Seeking and Positioning") is important as well. When you only want to read the LastName part of your file, you will...
  • Forum: Object-Pascal / Delphi-Language

    AW: Update/Delete Record items in a Stream

      Delphi
      by Der schöne Günther, 27. Apr 2018
    I still don't understand the problem. Let's assume you change your local variable myRec to be a parameter of both LoadFromStream(..) and SaveToStream(..). They both now look like this:

    Procedure SaveToStream(const myRec:Tmyrecord);
    var
    SavingStream: TFileStream;
    begin
    SavingStream := TFileStream.Create('SAVE.test', fmCreate or fmOpenWrite or fmShareDenyWrite);
    try
    ...
  • Forum: Object-Pascal / Delphi-Language

    AW: Update/Delete Record items in a Stream

      Delphi
      by Der schöne Günther, 27. Apr 2018
    Can you post your real code? Your current LoadFromStream() and SaveToStream() appear to be testing routines because they contain syntax errors and, in their current form, do not make sense:

    In LoadFromStream() you load your data into a local variable myRec. After that, your procedure ends and myRec is gone. You can inspect myRec in the debugger, but in the end, this method accomplishes...
  • Forum: Object-Pascal / Delphi-Language

    AW: Update/Delete Record items in a Stream

      Delphi
      by Der schöne Günther, 27. Apr 2018
    And then your next steps will probably be writing UpdateFirstName or UpdateId methods.

    Why not

    Load your data from stream
    Alter them in memory
    Save everything again


    It looks like you already have everything you need.


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=Der+sch%F6ne+G%FCnther&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=196162
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:54 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