View Full Version : interpeting error lines
dennishea
11-05-2006, 02:25 PM
error: (c:\program files\ppl\projects\MyWork.frm#BUTTON101) [Duplicate proc or func "BUTTON101_ONCLICK(4,1)" at 'BUTTON101_ONCLICK' (1,6)]
Some of my problem is interpeting what this error is telling me and what is the numbers in red saying? I'm confident that that's a position. If so how do I find it.
thanks in advance for any help.
dennishea
p.s. I hope there not a limit on post.
zehlein
11-05-2006, 02:59 PM
So what did you do? Maybe you tried to add an OnClick event by hand after the VFB did it already for you.
The error tells you that there are two procedures/functions with the name BUTTON101_ONCLICK and therefor PPL can't compile your code.
edit: oh, and the numbers in red give you the exact postion of the error in your sourcecode. Doublecklick on it and it should point you to the code in question
dennishea
11-05-2006, 03:19 PM
The only thing that I did was double click on a button to put the code in for accessing other form, like the tutorial said. I have tried this quite a few times with no success and have tried a few more times since the post you are replying to. I am doing less steps of tutorial till I can't do any less or it won't have a chance of functioning at all. My last attemp says that the menu5001_on_click event is duplicated and the vfb handles that.
dennishea
kornalius
11-05-2006, 03:38 PM
Zehlein is right.
You seem to have ONCLICK for Button101 defined more than once.
dennishea
11-05-2006, 03:55 PM
I don't know how it happened and double clicking on the numbers doesn't take me there as zehlein said. I have tried to find it and am having no success. As far as I can tell from the tutorial it should take about 5 10 minutes to create the multiform that it suggests and I have at least 4 hrs total over time trying to something simple. Todate I've only created one line of code that has worked right. It's getting very frustrating. I'm not a quiter but am starting to go gray and bald.
dennishea
P.S.
I'm not complaining about ppl I'm frustrated with my inablity to program with it.
kornalius
11-05-2006, 04:25 PM
Sorry that you having all these problems.
You cannot create two forms with the same control names at this time with PPL. That is the problem you are having. You are using BUTTON101 on one form and BUTTON101 again on another form.
Starting with version 1.1 we will have every single form use it's own namespace therefore allowing to use the same control names inside two different forms.
dennishea
11-05-2006, 04:31 PM
How do I get rid of menu5001_click event? I have tried that a couple of times on form main and it just comes back after compiling I assume. My last attempt that's what showed up with a duplicate. I don't need it on form main.
dennishea
zehlein
11-05-2006, 05:07 PM
If you look closely on the VFB there is a little button (right left of the star button for the game level editor) showing a little menu. Hit the button, use the waste bin and your menu is thrown to eternal digital nirvana ...
dennishea
11-05-2006, 06:16 PM
Thanks zehlein, that opened up a new door and allowed me to finally open up another form. Thanks again.
dennishea
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.