` Printed Icetips Article

Icetips Article



Par2: Hiding MS-SQL error window
2007-08-28 -- John Griffiths
 
1      Trancode{PROP:LogonScreen}=False 
2      OPEN(Trancode) 
3      if errorcode()
4        message('  Program could not connect to yaddayadda',' &|
             'Connection Problem',icon:hand)
5        return
6      end
7      CLOSE(Trancode)


At VERY start of my programs I usually do something like the above...

1  This line prevents the MS-Logon screen if connection fails
2  Opens one of my smallest files temporarily to test the connection
3 thru 7 handles errors and pops up my message...



Printed May 2, 2024, 11:03 pm
This article has been viewed/printed 35121 times.