Question : Get SQLConnect in a program...

I want to have the 10 programs I have get the sql connect (dns, userid, pwd) info from another proggram.

WHY? the AS400 I have to go to always has the Password changing. So instead of changing the 10, building, then uploading I could do it once...

so it could be DNS.prg I I would need some parms...?

Thanks

Answer : Get SQLConnect in a program...

No, it does not call it.  It just makes all the procedures in the dnsconn.prg available for your app and you have to call these procedures explicitly by  "DO procname" or as functions "procname()".

SET PROCEDURE is one of the basic commands in classic xBase language and you should know all its possibilities. See more in http://msdn.microsoft.com/en-us/library/c10akhe6(VS.80).aspx  or  http://fox.wikis.com/wc.dll?Wiki~VFPSetProcedure

Random Solutions  
 
programming4us programming4us