Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Myprog.ini how to create
Message
From
26/08/2004 23:33:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Myprog.ini how to create
Miscellaneous
Thread ID:
00936878
Message ID:
00936878
Views:
50
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
Map
View

Click here to load this message in the networking platform