I was finding Konstants are not behaving consistently.

Sometimes, they work as expected, at others I am getting runtime errors 
regarding type comparison problems.
Some of the constants were behaving as if they and not been 
initialized, yet the debugger shows that they have the expected value.
Hovering the mouse over the problematic Konstant shows that it to be of 
the correct type (longint or text as appropriate), and has the expected 
value. 

Entering an expression in the debugger such as :
my_Konstant = "Text_Value"  resolves to true.

The 2 most common issues I was seeing were:
- Passing a Konstant as a parameter, and the value in the called method 
was blank ("", or zero)
- making an assignment with a Konstant, error not compatible type


After much nashing of teeth, hair pulling, and few times of forehead 
meeting desk I have found the following things:
- the word 'Option' can not start a Konstant name, have not tested if 
can be embedded in the Konstant's name.
- the word 'Menu' or 'Menus' seems to be disallowed as a Group/Theme 
name.


Chip





---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to