CubicDesign wrote: > It returns the correct value, but I have a problem; it rise an error. I > don't want any errors visible on screen. > > --------------------------- > Tester2.exe - Write Protect Error > --------------------------- > The disk cannot be written to because it is write protected. Please > remove the write protection from the volume in drive E: > --------------------------- > Cancel Try Again Continue > ---------------------------
Have you tried using SetErrorMode to disable the OS's error dialogs? -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

