Ace08 2 Posted November 4, 2010 (edited) Hi guys i am working on a simple program that mimics a database program, but all the datas are stored in a notepad mainly a .txt file i have almost all the working buttons exept for the edit button and i can't seem to figure out how to pick up a single line in that textfile and edit then save it... btw these datas are also present in a listbox i can get the data from the listbox but how to link that to a textbox... sorry for asking but i am realy having a hard time thinking on how it could be done.... any help would be appreciated.... here is a copy of what i have done so far and sorry again because the code are very measy Database.au3 Tomorrow i'll try to do this one again but for now i would like to sleep....(Need some rest ) Edited November 4, 2010 by Ace08 Work smarter not harder.My First Posted Script: DataBase Share this post Link to post Share on other sites
UEZ 1,278 Posted November 4, 2010 Why not editing directly within the GUI and save it afterwards to the text file? How it can work? Just have a look here -> CSV-EditorBr,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Share this post Link to post Share on other sites
Ace08 2 Posted November 5, 2010 Why not editing directly within the GUI and save it afterwards to the text file? How it can work? Just have a look here -> CSV-EditorThanks a lot UEZ i'll look into it and hopefuly finished this one this evening Work smarter not harder.My First Posted Script: DataBase Share this post Link to post Share on other sites
Ace08 2 Posted November 5, 2010 oh i just remembered if the user edits the contents of the GUI then save it later would that affect the speed of saving the process? i mean basicaly what will happen is the user edits the record the script gets the contents of the listview then place it in a text file i've thought of this one too but as the records increase will the script able to maintain its speed when editing? Work smarter not harder.My First Posted Script: DataBase Share this post Link to post Share on other sites
Ace08 2 Posted November 10, 2010 Uhm hi guys got the editing part working(Thanks UEZ ) Now i have another problem, i've been trying to solve this for almost 3days ...... what i have now is a GUI that has 3 buttons namely View, New, and Delete. Got this buttons working but the delete (or save has a problem) when i tried to delete the last record then add a new record the script works but when i tried to delete records from the middle then add another record the list view would only show the "ID" field but when i looked inside the notepad the records i added are there.... i was thinking of just refreshing the main GUI(the one holding the listview) but i dont know how to refresh the GUI... Maybe some ideas?...Appreciate your help here is are the code just in case someone needs them, sorry but its realy measy DataBase.au3 Work smarter not harder.My First Posted Script: DataBase Share this post Link to post Share on other sites
engjcowi 1 Posted January 6, 2011 Hi Ace did you ever sort your problems out with your database program? Drunken Frat-Boy Monkey Garbage Share this post Link to post Share on other sites