I have a “showvariables” bug to report. Has this been reported before?
Here are the last few lines of a lengthy procedure:
fg_showmacro = «Macro Text»
showvariables fg_showmacro
displaydata fg_showmacro, myformat
RTN
The displaydata command correctly shows the value of the variable, but a textDisplay object on a form DOES NOT UPDATE the variable. In trying to experiment why this might be, I did the following. I went to the TextDisplay object, confirmed that the “Formula” for the object was entered correctly (it was), deleted the last 3 characters, and re-entered them. That’s all. I just re-entered the same formula.
From that point on, the procedure works correctly.
There is obviously no way for me to replicate this situation, and I know what some of you will think (he must have mis-spelled the variable in the first place). But no, that variable was entered correctly, it worked correctly in other procedures of the same file, and was checked diligently.
If anyone else in future has an issue with showvariables not updating properly, try deleting the formula and re-enterring it in the textdisplay object. It may work for you as it did with me. Why that should work is a complete mystery. But it did.
Vic