>>Hi
>>
>>I knopw I should know it.
>>
>>I have a
>>
>>MODIFY PROJECT (lcFile) NOWAIT NOSHOW NOPROJECTHOOK
>>
>>
>>this raises a dialog to tell me that the prjecthook library is not found.
>>
>>How can I suppress the dialog so that I just can deal with the error?
>
>Open pjx as dbf and delete the record where it mentions the hook?
Nope. It's intended that the vcx is no there. The VCX will be created from a text file.
If I can MODI PROJ I can ask the project for the hook and process the text file.
If this errors I still can parse the PJX as DBF - but this is so boring. :)
Number one best would be to ignore the err - it will open the PJX with all the info, and I don't need the hook in that moment.
it's just
MODIFY PROJECT (lcFile) NOWAIT NOSHOW NOPROJECTHOOK
loProject = _VFP.PROJECTS(JUSTFNAME(lcFile))
lcFile = loProject.PROJECTHOOKLIBRARY
loProject.CLOSE
:)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]