Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
Error: The referenced variable, parameter, or function Parent does not exist |
Mon, Aug 11 2014 9:09 PM | Permanent Link |
Stephen Barker | I just started getting this compile error on line (0,0) of my unit
"The referenced variable, parameter, or function Parent does not exist" It seemed to happen after I copied and pasted some components onto the form from another unit. I fixed up all the events and names and stuff so there are no other compile errors except the above. I read through the .wbf file and all seems ok. I searched through the .wbs file for parent and there were 2 instances where I was setting a components parent property to a container panel, which is working fine in other similar parts of the application. I commented out those 2 lines but it did not make any difference. Any ideas? Steve |
Mon, Aug 11 2014 10:20 PM | Permanent Link |
Raul Team Elevate | This is due to properties of the component most likely.
Try removing the component and then compile. If OK then drop it back from IDE (not copy/paste) and see if pasted version came with some extra or incorrect properties or property values. Raul On 8/11/2014 9:09 PM, Stephen Barker wrote: > I just started getting this compile error on line (0,0) of my unit > > "The referenced variable, parameter, or function Parent does not exist" > > It seemed to happen after I copied and pasted some components onto the form from another unit. I fixed up all the events and names and stuff so there are no other compile errors except the above. > > I read through the .wbf file and all seems ok. I searched through the .wbs file for parent and there were 2 instances where I was setting a components parent property to a container panel, which is working fine in other similar parts of the application. I commented out those 2 lines but it did not make any difference. > > Any ideas? > > Steve > |
Tue, Aug 12 2014 12:29 AM | Permanent Link |
Stephen Barker | Hi Raul,
There were about 20 components and a lot of events and code interacting with them all, so I gave up and deleted everything on the panel so I could get back to a compilable point. Then I cut and pasted the components again, but this time only one or 2 at a time, and hooking up events and checking names and compilation as I went along as best as I could, and creating stub methods and events for those that would be coming across later. This time it all worked perfectly. I have no idea what went wrong the first time, but maybe I just tried to do too much in one hit and EWB got confused. The puzzling thing was that I couldn't seem to resolve that situation by any combination of closing and reopening units, project, EWB, editing files in Notepad etc, so I don't know what part of the source files it was objecting to. I have kept a copy of the unit that was broken in case Tim wants to look at it. Steve Raul wrote: This is due to properties of the component most likely. Try removing the component and then compile. If OK then drop it back from IDE (not copy/paste) and see if pasted version came with some extra or incorrect properties or property values. Raul On 8/11/2014 9:09 PM, Stephen Barker wrote: > I just started getting this compile error on line (0,0) of my unit > > "The referenced variable, parameter, or function Parent does not exist" > > It seemed to happen after I copied and pasted some components onto the form from another unit. I fixed up all the events and names and stuff so there are no other compile errors except the above. > > I read through the .wbf file and all seems ok. I searched through the .wbs file for parent and there were 2 instances where I was setting a components parent property to a container panel, which is working fine in other similar parts of the application. I commented out those 2 lines but it did not make any difference. > > Any ideas? > > Steve > |
Wed, Aug 13 2014 4:40 AM | Permanent Link |
Ronald | Hi Stephen,
Look at your events of the components that you have copied. EWB does copy the events in the components too, but it does not copy the coresponding code. That created the error in my case. Ronald "Stephen Barker" schreef in bericht news:4675BA6C-D1DA-45C2-90AA-4CC75B2623C5@news.elevatesoft.com... Hi Raul, There were about 20 components and a lot of events and code interacting with them all, so I gave up and deleted everything on the panel so I could get back to a compilable point. Then I cut and pasted the components again, but this time only one or 2 at a time, and hooking up events and checking names and compilation as I went along as best as I could, and creating stub methods and events for those that would be coming across later. This time it all worked perfectly. I have no idea what went wrong the first time, but maybe I just tried to do too much in one hit and EWB got confused. The puzzling thing was that I couldn't seem to resolve that situation by any combination of closing and reopening units, project, EWB, editing files in Notepad etc, so I don't know what part of the source files it was objecting to. I have kept a copy of the unit that was broken in case Tim wants to look at it. Steve Raul wrote: This is due to properties of the component most likely. Try removing the component and then compile. If OK then drop it back from IDE (not copy/paste) and see if pasted version came with some extra or incorrect properties or property values. Raul On 8/11/2014 9:09 PM, Stephen Barker wrote: > I just started getting this compile error on line (0,0) of my unit > > "The referenced variable, parameter, or function Parent does not exist" > > It seemed to happen after I copied and pasted some components onto the > form from another unit. I fixed up all the events and names and stuff so > there are no other compile errors except the above. > > I read through the .wbf file and all seems ok. I searched through the .wbs > file for parent and there were 2 instances where I was setting a > components parent property to a container panel, which is working fine in > other similar parts of the application. I commented out those 2 lines but > it did not make any difference. > > Any ideas? > > Steve > |
This web page was last updated on Friday, November 1, 2024 at 07:01 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |