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:
00545131
Vues:
16
Thanks George.

I ended up using the suggestion of double-clicking on the newudl.reg file, but I found this to be a valuable education for future reference.

>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform