Hello, i like show a Real Field as Percentage, i add Percent EDT to the field (in Table), but keeps showing as real.
My values are 0.10, 0.40, 5.40 .. etc and i like show 0.1%, 0.40% 5.4% ....
Thanks
*This post is locked for comments
Hello, i like show a Real Field as Percentage, i add Percent EDT to the field (in Table), but keeps showing as real.
My values are 0.10, 0.40, 5.40 .. etc and i like show 0.1%, 0.40% 5.4% ....
Thanks
*This post is locked for comments
Is there no other way ?, then what is the Percent EDT ? I do not want to use code for this form.
Hi,
I would suggest to keep the field as real and change the label to something that has suffix % like discount % (or) else you have to save it as a string by appending the real value(using num2str() function) with percentage symbol '%' and for every needed calculation need to extract the integer part from string(using substr() function), convert it to real(using str2num() function), perform calculation, convert real to string(using num2str() function) and append %symbol back again which is clearly an overhead.
write an edit method , which returns string as 0.40 %, 0.1%. in edit method use num2str function. u will get ample of examples in AOT on edit methods.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156