Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Help file exaple not working

Author
Message
mclout99
15
Years of Service
User Offline
Joined: 23rd Sep 2009
Location:
Posted: 23rd Sep 2009 11:15
This line of code is given in a few help file code exables and it give a compile error of (Function call 'scancode' expects parameters in brackets at line 10)


if scancode()>1 and scancode()8 then if object exist(ObjectNumber)=1 then delete object ObjectNumber

It looks like a good way to delete the object so the new one can be created. Can anyone tell me why the help file code will not compile?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Sep 2009 13:56 Edited at: 23rd Sep 2009 13:58
Well you seem to have a frog after your scancode check ()8

Maybe that should be:



But I'd do it like this anyway, THEN IF is the devil...




Health, Ammo, and bacon and eggs!

Login to post a reply

Server time is: 2024-11-25 02:03:57
Your offset time is: 2024-11-25 02:03:57