Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 7 code that doesnt run in 8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00771062
Message ID:
00771884
Vues:
9
Glad to see you have it working now. I didn't reply earier because the time zone difference is a killer here. We're about 18 hours ahead of you guys, so your Friday work hours is our Saturday morning (early).


>That was it thank you !!!!
>
>I had the vfp8 beta installed before the release version, maybe that was why it didnt try to register it on install ?
>
>
>>Try running vfp8.exe with the /regserver switch, i.e.
>>
>>"c:\program files\microsoft visual foxpro 8\vfp8.exe" /regserver
>>
>>I think VFP8 is not registered correctly on your machine. Did you by any chance install an earlier version of VFP after installing VFP8?
>>
>>
>>>Thanks for posting Jim,
>>>
>>>Running this code gives me this error message:
>>>
>>>OLE error code 0x8002801d: Library not registered.
>>>
>>>at this line of code:
>>>_VFP.ACTIVEPROJECT.FILES.ADD('testxx.prg')
>>>
>>>
>>>
>>>
>>>
>>>>Something else must be going on. This works fine for me:
>>>>
>>>>
>>>>erase testxx.pj?
>>>>CREATE PROJECT testxx nowait
>>>>TEXT TO lcText NOSHOW
>>>>	do testxx2.prg
>>>>	MESSAGEBOX('test')
>>>>endtext
>>>>DELETE FILE testxx.prg
>>>>DELETE FILE testxx2.prg
>>>>StrToFile('x = 1','testxx2.prg',0)
>>>>?STRTOFILE(lcText,'testxx.prg',0)
>>>>_vfp.ActiveProject.files.add('testxx.prg')
>>>>_vfp.ActiveProject.files.add('testxx2.prg')
>>>>_vfp.ActiveProject.close
>>>>clear all
>>>>modify project testxx nowait
>>>>with _vfp.ActiveProject
>>>>	for each oFile in _vfp.ActiveProject.Files
>>>>		cDir=JustPath(ofile.name)
>>>>	endfor
>>>>endwith
>>>>_vfp.ActiveProject.close
>>>>return
>>>>
>>>>
>>>>Can you try this code?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform