Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Myprog.ini how to create
Message
De
26/08/2004 23:33:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Myprog.ini how to create
Divers
Thread ID:
00936878
Message ID:
00936878
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform