Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What happened to my MS Datalink Option?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00544086
Message ID:
00544096
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
>I used to be able to right click on my desktop, and create a new "Microsoft DataLink Object." That option has disappeared.
>
>I recently installed SP5, and I'm wondering if that somehow did something?
>
>Any thoughts would be appreciated.
>
>Thanks,
>
David,

Try this:
* Create a template file in the Windows ShellNew sub-directory
lcfile = GETENV('WINDIR') + "\ShellNew\mdac.udl"
lnhandle = FCREATE(lcfile)
= FCLOSE(lnhandle)
SET CLASSLIB TO Registry.vcx ADDITIVE
oReg = CREATEOBJECT('Registry')
RELEASE CLASSLIB Registry
* Open and, if necessary, create the appropriate registry key
oReg.OpenKey(".udl\ShellNew", , .T.)
* Set the filename value to the template file
oReg.SetKeyValue("FileName", JUSTFNAME(lcfile))
* Close the key.
oReg.CloseKey()
It assumes that the registry class of the FFC is on the Fox path or is the current directory.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform