Pontiac76 / Vision-Basic-IDE

1 stars 0 forks source link

How about ACTUALLY saving? #2

Open Pontiac76 opened 1 year ago

Pontiac76 commented 1 year ago

1 needs to be completed before implementing ACTUAL saving of files.

When the user hits File>Save the current history of edits and generation are saved.

The format of the save I'm not quite sure about yet. I've not toyed with saving the objects (tStringLists) to a tStream yet, but I have SQLite code that I've used for years. Lazarus has built in functionality for SQLite as well but I've not used their methodology yet. Not sure which way to go yet.

Pontiac76 commented 1 year ago

I've got a resemblance of saving to a SQLite3 file, but running into conflicts when using the TheCode.Modified property.

I'm attempting to avoid saving every version every time you hit CTRL-S, so maybe something along the lines of doing a comparison between what is in the editor and what the last save would have contained, and decide based on that for the actual save.