Panorama is never going to confuse a field named Date with the date( function. One is an operator and the other is an operand. However, you might, so Paul’s advice is sound. On the other hand, many many people (including me) have used a field named Date without any problem.
You could even make fields or variables named And or Or, and code like this
let And = true()
let Or = true()
if And and Or
do something
endif
will actually work! From the context, Panorama knows the difference between operands and operators/functions. I made it a bit clearer by using different capitalizations, but I could make it even more confusing like this:
let and = true()
let or = true()
if and and or
do something
endif
But I don’t generally recommend it, as that will sure be confusing for you or someone else to read later.
Some people like to put prefixes in front of variable names, for example gName for a global variable, fName for a file global variable. I’ve never done that myself, but it seems to be a popular idea. Panorama itself couldn’t care less - if you do that, it’s your preference.
The same goes for Roberts’s idea of using chevrons. For example, I could revise my example above like this:
let «and» = true()
let «or» = true()
if «and» and «or»
do something
endif
I guess this makes it a bit clearer, but personally I would just avoid names like and, or, not, etc.
My preference, in general, is to use longer more descriptive names. This means more typing, but fortunately I’m a fast typist. But this makes it more clear what is what, and is also an advantage for searching later. If I have a field or variable with a name like OriginalOrderDate that’s going to be a lot easier to find later than if I simply used Date.
I may start prefacing every field name with “f” (and start using Titles)just as I do “v” for variables and “p” for procedures. Before I go to my 4 databases and update, does this sound reasonable?
The question is - does that sound reasonable to you? If so, go for it. It’s not something I would do, but if you like it, do it.