General information
Category:
Coding, syntax & commands
Title:
Myprog.ini how to create
Hello,
myprog.prg is :
lnConnect = SQLSTRINGCONNECT("dsn=sql test; uid=utest1; pwd=ptest1")
IF lnConnect > 0
lcString = "SELECT * from mytable"
lnResult = SQLEXEC(lnConnect, lcString, 'temp')
IF lnResult < 0
=aerror(laError)
suspend
WAIT WINDOW 'Error'
ENDIF
ELSE
WAIT WINDOW "Not able to connect"
ENDIF
How to create myprog.ini to pass on dsn,uid and pwd if I want to change
these three variables instead of hard coding inside myprog.prg
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only