Hello,
I noticed a wrong behavior with Form Designer 5.11.
Follow these steps :
Step 1 - write a caption String "This is my Caption" when "Caption is a variable ?" option is unchecked
Step 2 - check it, an error occur : "Invalid character in variable name" --> It's the correct behavior.
Step 3 - the option is now always checked and it's very hard to unchecked (press mouse button, move cursor outside canvas and release button)
Is it possible to uncheck it automatically after the error detection ?
Arnaud
[Done] - Caption and "Caption is a variable ?" feature
-
- User
- Posts: 84
- Joined: Mon Sep 06, 2010 3:05 pm
-
- Enthusiast
- Posts: 122
- Joined: Sat Nov 19, 2011 6:51 pm
Re: [PB5.11] - Caption and "Caption is a variable ?" feature
The reason for the error is that the caption you are using has at least a 1 space in it, therefore under general programming rules variables do not contain spaces.
If you click back into the string after ok'ing then the check is unchecked
If you click back into the string after ok'ing then the check is unchecked
-
- User
- Posts: 84
- Joined: Mon Sep 06, 2010 3:05 pm
Re: [PB5.11] - Caption and "Caption is a variable ?" feature
Thank you, but click back to string after the error is not intuitive.SniffTheGlove wrote:The reason for the error is that the caption you are using has at least a 1 space in it, therefore under general programming rules variables do not contain spaces.
If you click back into the string after ok'ing then the check is unchecked
May be uncheck the tickbox automatically is the solution ?
What do you think about it ?
Arnaud
Re: [PB5.11] - Caption and "Caption is a variable ?" feature
I agree with Maitre about this bug.
The Form Designer should not mess with the value that is passed into it. If it is a variable then read the variable name into the Caption field. If it is a sting, surrounded by quotes then read the entire text into the field "with quotes".
Is the Variable click box really needed? Does the Event Loop or Event Procedure use this field anyway?
I cannot get the mouse clicking in the caption field to do anything other than split my text ("Inventory Items") into two variable names.
The Form Designer should not mess with the value that is passed into it. If it is a variable then read the variable name into the Caption field. If it is a sting, surrounded by quotes then read the entire text into the field "with quotes".
Is the Variable click box really needed? Does the Event Loop or Event Procedure use this field anyway?
I cannot get the mouse clicking in the caption field to do anything other than split my text ("Inventory Items") into two variable names.
- newtheogott
- Enthusiast
- Posts: 120
- Joined: Sat Apr 26, 2003 2:52 pm
- Location: Germany, Karlsruhe
- Contact:
Re: [PB5.11] - Caption and "Caption is a variable ?" feature
Additionally, the Form Designer could itseld remove unused Spaces.
For this there is a TRIM Command available in any language.
Furthermore it should also trim out all characters that are not allowed thus avoiding any error-message.
Alternatively, it can generate variables "A0001"-"A9999" himself and use these variables.
If somebody wants other variable-names he can later adjust these.
The impoprtant point is, to avoid possible sources of buggy code that does not compile.
And this is possible.
For this there is a TRIM Command available in any language.
Furthermore it should also trim out all characters that are not allowed thus avoiding any error-message.
Alternatively, it can generate variables "A0001"-"A9999" himself and use these variables.
If somebody wants other variable-names he can later adjust these.
The impoprtant point is, to avoid possible sources of buggy code that does not compile.
And this is possible.
--Theo Gottwald
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
-----------------------------------------
http://www.it-berater.org * http://www.fa2.de * http://www.smart-package.com
Re: [PB5.11] - Caption and "Caption is a variable ?" feature
Fixed.Maitre_Kanter wrote:Hello,
I noticed a wrong behavior with Form Designer 5.11.
Follow these steps :
Step 1 - write a caption String "This is my Caption" when "Caption is a variable ?" option is unchecked
Step 2 - check it, an error occur : "Invalid character in variable name" --> It's the correct behavior.
Step 3 - the option is now always checked and it's very hard to unchecked (press mouse button, move cursor outside canvas and release button)
Is it possible to uncheck it automatically after the error detection ?
Arnaud