Hot Topic (More than 10 Replies) Combile Error (Read 5289 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Combile Error
Sep 11th, 2012 at 5:57pm
Print Post Print Post  
I'm getting a couple of errors when I open one of my forms.  The message says "Some or all of the programming in this form failed to compile.  No event programming will run."

Usually, when I see this message, I find an error in my programming that I can correct.  In this case, when I TEST the program, it comes up clean.

Also, if I click on the command buttons, I get another error message: "Error: a runtime SBASIC error has occurred.  Please close this form and repair the condition before continuing."

I've seen this error before when I try to divide by zero in a calculation.

Based on these two errors, I've gone through my programming and 'remarked' everything out using /* and */ for ALL of my programming.  So, there should be no programming to compile for this form, but I still get the error!

Any ideas on why I am still getting these error messages?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Combile Error
Reply #1 - Sep 11th, 2012 at 6:43pm
Print Post Print Post  
The runtime error message is probably caused by the failed to compile error message, so lets work on that.

You've commented out all the programming on that form, and it's still failing to compile, correct? My guess is you have a subform on that form and it is actually what is failing to compile.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Combile Error
Reply #2 - Sep 11th, 2012 at 7:10pm
Print Post Print Post  
No, there is no subform.  It is a very simple form of customer names and addresses and the appropriate salesman and account number.  A total of 10 elements.

I notice that the Account Number element's name was "ACCT #" and is bound to "ACCT #".  I changed the element name to ACCOUNT NUMBER as I was afraid that the "#" might be causing a problem, but that did not solve the problem.
  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Combile Error
Reply #3 - Sep 11th, 2012 at 7:42pm
Print Post Print Post  
I have had the same problem when I have an element left off the form and is in my designer window to the side or bottom. look for an element that is stray.

Right click on the off area and click select all ghosted elements.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Combile Error
Reply #4 - Sep 11th, 2012 at 8:43pm
Print Post Print Post  
I don't seem to have a stray element.
  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Combile Error
Reply #5 - Sep 11th, 2012 at 9:13pm
Print Post Print Post  
You may be correct and it may be something else, however I am still betting it is a stray element.

The results are exactly as you say and I have suffered through this lots of times.  It always ends up being a duped or weird element I never noticed till it was a problem.

if you open the sample contacts database supplied by sesame and just move the bright yellow element off to the side and then save your changes   you will see your exact results.

Maybe you can make a back-up dsr of your app to play with and start moving or deleting elements and look behind things.  I am betting you have a lost element.

once you find it on your back up it will be easy to fix on your real one.

The only reason I am being so persistent is because I have told myself  numerous times in the past  I had no stray elements and then later on found it. I just want to try and save you from my same mistakes.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Combile Error
Reply #6 - Sep 12th, 2012 at 1:50pm
Print Post Print Post  
Hmm If all the programming is commented out, then even ghosted elements shouldn't have any effect as there is no programming to reference them.

If you want to Paul, shoot the DSR and DDT files over to support@lantica.com and I'll take a look at them this morning and see what is happening.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Combile Error
Reply #7 - Sep 12th, 2012 at 3:55pm
Print Post Print Post  
My files are hugh and won't fit through the email.  How can I send it to you?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Combile Error
Reply #8 - Sep 12th, 2012 at 7:46pm
Print Post Print Post  
Hi Paul,

If you can place them in a Zip folder and they are smaller than 30 mb you can send them to me by using the Support Request form at http://www.lantica.com/support/contact. If they are larger than that, let me know and I'll email you over some FTP instructions.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Combile Error
Reply #9 - Sep 24th, 2012 at 9:20pm
Print Post Print Post  
I fixed the problem!

It appears that one of my programming commands, ThrowFocus() was trying to throw the focus to an element that didn't exist.  I'm not sure why this didn't show up as an error when I tested it, but I corrected the element name and everything now works!


  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Combile Error
Reply #10 - Sep 24th, 2012 at 9:31pm
Print Post Print Post  
Hmmm. I'll ask Support to triage this and see if they can replicate it. Thanks for letting us know!
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Combile Error
Reply #11 - Sep 25th, 2012 at 3:39pm
Print Post Print Post  
NHUser wrote on Sep 24th, 2012 at 9:20pm:
I fixed the problem!

It appears that one of my programming commands, ThrowFocus() was trying to throw the focus to an element that didn't exist.  I'm not sure why this didn't show up as an error when I tested it, but I corrected the element name and everything now works!


Was the name being used in Throwfocus() the same as the name of the form? That will cause this.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Combile Error
Reply #12 - Sep 25th, 2012 at 9:38pm
Print Post Print Post  
Yes, it was.  The form name is CUSTOMER.  Which is probably a bad choice as many of our forms have an element called CUSTOMER.

The element I was trying to ThrowFocus to was COMPANY.

  
Back to top
 
IP Logged