GoFish icon indicating copy to clipboard operation
GoFish copied to clipboard

Error Property PROJECTS is not found

Open nmpetkov opened this issue 3 years ago • 6 comments

After star GoFish5 or GoFish4 app I am getting error:

Property PROJECTS is not found.

It is generated in line:

For each loProject in _VFP.Projects

Windows 10, VFP 9 SP2

nmpetkov avatar Aug 25 '21 07:08 nmpetkov

Strange. I cannot reproduce this error.

What do you get it type this in the Command Window of VFP?

? _VFP.Projects

mattslay avatar Aug 25 '21 13:08 mattslay

It returns (object). But in debug window I see:

image

nmpetkov avatar Aug 25 '21 14:08 nmpetkov

Please try to have at least one Project open in VFP and then run the APP and see if starts without this error.

mattslay avatar Aug 25 '21 14:08 mattslay

Yes, I have opened projects. The error is there again. I made a workaround - commented FOR loop with _VFP.Projects, and builded the app. Now it works without error.

I suggest making a check for existence of count property of _VFP.Projects

On Wed, 25 Aug 2021 at 17:08, Matt Slay @.***> wrote:

Please try to have at least one Project open in VFP and then the APP and see if starts without this error.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mattslay/GoFish/issues/11#issuecomment-905533251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZQQLHP4LTUQK3NGKAPZTT6T2NDANCNFSM5CYOT66A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

nmpetkov avatar Aug 25 '21 14:08 nmpetkov

Something strange here. There must be hundreds of GF users, and no one has ever reported this issue. Where did the APP and source code come from? Here on github?

mattslay avatar Aug 25 '21 14:08 mattslay

I used the app several years, I think GoFish 3. Then when installed Gofish 4 the error appear. Now downladed Gofish 5 from Github, and the error again appears. So I decided to create an issue. It is possible to have something strange in my environment, but I work in it many-many years, and it is working environment.

I even copied VFP executables in separate directory and ran from there (to be sure the envviroment is clean). Same error.

It is not fatal at all - but for some strange cases like mine - you can make a check for existance of the object property, and then make a loop .

nmpetkov avatar Aug 25 '21 14:08 nmpetkov