Hi all!
I have a textbox on a form. The sourcexpression is a variable of data type Text.
When entering something into the textbox it seams as though navision trims any trailing space characters from the end of the imput text.
Does anyone know a way around this?
0
Answers
Have any one noticed that the space characters are deleted? Is it the same in all versions of NAV?
I'm on 3.70 by the way.
What you can do is write code in the OnAfterInput trigger of the textbox to catch the spaces.
Object Manager
MESSAGE(txtSourceExpr + 'Hello'); in the OnAfterInput trigger but in that trigger no input has yet been stored.
If I put the same line of code in the OnValidate trigger it works as long as the last character is not a space.
The input it not written back to the source expression until the textbox loses focus and then any trailing space characters are removed.
Any other ideas?
Object Manager
Thanks!
Why didn't I think of the triggers input param? :oops:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!