DECIMALPLACESMAX (Control)
Use this function to return the current setting of the maximum number of decimal places for a control (field or text box), and to set a new value. The function manipulates the maximum number-part of the setting of the DecimalPlaces property.
The current setting of the maximum number of decimal places.
NewMaxDecimals
Data type: integer
The new setting of the maximum number of decimal places.
Comments
See the description of the DecimalPlaces property for details.
I can imagine i can use the function with "currform.control.decimalplaces"...but in the help they wrote FIELD, too.
maybe they intend only "control" fields and not the phisical field on the table?
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
For example: Default is 0:9 you can only set CurrForm."PurchasePrice".DECIMALPLACESMAX(8). If you set CurrForm."PurchasePrice".DECIMALPLACESMAX(10) the system will scream ....
For example: Default is 0:9 you can only set CurrForm."PurchasePrice".DECIMALPLACESMAX(8). If you set CurrForm."PurchasePrice".DECIMALPLACESMAX(10) the system will scream ....
logical...but what i really meant was: can't i use the function under the table?i think not...(effectively it should be a really painful thing to decrease the decplaces of a field...)
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
I never notice that it can only be decreased. That's very annoying if you have only a few records where you want the user to be able or force the user to enter more decimal places.
"Money is likewise the greatest chance and the greatest scourge of mankind."
Answers
I can imagine i can use the function with "currform.control.decimalplaces"...but in the help they wrote FIELD, too.
maybe they intend only "control" fields and not the phisical field on the table?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
For example: Default is 0:9 you can only set CurrForm."PurchasePrice".DECIMALPLACESMAX(8). If you set CurrForm."PurchasePrice".DECIMALPLACESMAX(10) the system will scream ....
logical...but what i really meant was: can't i use the function under the table?i think not...(effectively it should be a really painful thing to decrease the decplaces of a field...)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I never notice that it can only be decreased. That's very annoying if you have only a few records where you want the user to be able or force the user to enter more decimal places.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog