> Hellow Foxite members;
>
> I want to suppress the Display Log-in of MyODBC, I search Foxite and found this thread
Message ID: 68573 which is applicable only I think for windows based OBCD.
> Somehow I tried it and it did not work.
> I have this code:
>
x = SQLSetprop(0,'DispLogin',3) && To Prevent Display Log-in window
> lnHandle = SQLConnect("MyConn") && To connect to MySQL DB using MyODBC.
> Is there anyway around to suppress the Display Log-in of MyODBC?
>
> PS: It does not display when the connection is available (failed or not), somehow we do not want to show this to our user when we are implementing it to a new computer that the MyODBC connection is not yet set/avaible.
Your code works as intendend in my machine, I don“t have an ODBC connection named "MyConn" and no Dialog pop ups, lnHandle is -1
By the way, if the "MyConn" System/User/File dsn does not exist, how does VFP/Windows decides to pop up the MySql ODBC connector screen?
Or is "MyConn" a connection stored in a VFP database? If that is the case, what are the properties of "MyConn"?
If "MyConn" is a VFP connection stored in a DBC, then:
DBSetProp("MyConn", "Connection", "DispLogin", 3)
lnHandle = SQLConnect("MyConn")
But still I am not shure what you are trying to do and why.
Carlos Alloatti