Hot Topic (More than 10 Replies) Programming Error (Read 1126 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Programming Error
Feb 26th, 2004 at 9:51am
Print Post Print Post  
I have a simple application in which I have a few text elements and one Date Element. It shows error for simple code like

Display = Diag1 + " " + Diag2

error message "+" operation not defined for operand.

The same I can do in Mass Update and test for error and no error messages there.  The files functions fine. It even compiles without error.  Only problem is that when I test the program window, it will show error for all above string operations.   ???  
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Programming Error
Reply #1 - Feb 26th, 2004 at 1:13pm
Print Post Print Post  
What are the field types of Display, Diag1 and Diag2?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming Error
Reply #2 - Feb 26th, 2004 at 1:41pm
Print Post Print Post  
All text Boxes and Database was translated from Q&A4. It has very little programming and may be about fifteen LEs.
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming Error
Reply #3 - Feb 26th, 2004 at 1:51pm
Print Post Print Post  
Other significant thing I can remember is that I had renamed the database and Layout Form using Property Editor. I know the same could have been done using Manage a Database section.  There are about three reports translated from Q&A. I use this application for external lookups only.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Programming Error
Reply #4 - Feb 26th, 2004 at 1:59pm
Print Post Print Post  
What are the field types (not layout element types) of Display, Diag1 and Diag2? Are they Text? Dates? Numbers?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming Error
Reply #5 - Feb 26th, 2004 at 2:05pm
Print Post Print Post  
Text type, both.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Programming Error
Reply #6 - Feb 26th, 2004 at 2:09pm
Print Post Print Post  
That error message usually means that you are trying ot perform an operation that is not valid for the data type, for example, dividing dates. Could I see this application? If so, send it to support@lantica.com marked to my attention.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming Error
Reply #7 - Feb 26th, 2004 at 2:11pm
Print Post Print Post  
Certainly. I will be sending it next couple of minutes. Thanks Erika.
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming Error
Reply #8 - Feb 26th, 2004 at 2:51pm
Print Post Print Post  
Erika,

I found the problem. One of the Elements name and Layout Name is the same. I changed the element name and it is fine. Sorry for the trouble. I knew the problem arised when I changed the layout's and database name. Thanks.

  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming Error
Reply #9 - Feb 26th, 2004 at 3:14pm
Print Post Print Post  
Q&A tolerated this for what seems like ages. I think it would not be inappropriate if Sesame either gives an alert or stop while such naming incompatibility is detected with appropriate message. Obviously, it is an end-user goof up, but programming can protect the integrity of the program and a lot of headaches for support as well as end-users.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Programming Error
Reply #10 - Feb 26th, 2004 at 3:30pm
Print Post Print Post  
I'm glad you found the problem.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged