|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How To Prevent Multible Users Of Application From Clobbering Each OtherHow can I prevent multible people, who use my program at the exact same
time, from overwritting textfiles? E.G.: Two users start the same program and one deletes something but the other saves his data and undoes the delete that was done! Also, what about databases being overwritten at the same time. How can I prevent users from interfering with each other? Thank you, Christopher Lusardi Chrisopher,
Normally with a normal open for write you cannot overwrite a text.file. However some classes overwrite automaticly as by instance the ds.XMLWrite Therefore just testing is always the best. However the File class gives you a lot of information. By instance the File.exist(path) For databases the word for this is concurrency, if you check for that on Interenet you get a lot of information. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskPerformingOptimisticConcurrencyChecking.asp I hope this helps, Cor Show quoteHide quote "Christopher Lusardi" <clusard***@aol.com> schreef in bericht news:1148631396.362704.264530@j55g2000cwa.googlegroups.com... > How can I prevent multible people, who use my program at the exact same > time, from overwritting textfiles? E.G.: Two users start the same > program and one deletes something but the other saves his data and > undoes the delete that was done! > > Also, what about databases being overwritten at the same time. How can > I prevent users from interfering with each other? > > Thank you, > Christopher Lusardi >
converting the use of interfaces under vb6 to vb.net
WebBrowser Control Frame Documents How to translate C++ 'for' loop into VB.NET? error handle Windows Service using VB.Net automatic startup problem ! catch the process terminate from the task manager make a form shared - called from another form - how? ClickOnce deployment problem! Text color list box Stupid Question of the day...... |
|||||||||||||||||||||||