当我尝试输入十进制数字(例如0.5内场)时,它立即更改为.5在Oracle表单中
If I enter values as 0.5 the zero before . is getting removed and displayed as .5 this is happening when i move to other field. is there any settings need to be done plz help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
打开物品的属性调色板并设置格式蒙版以达到所需的值。例如:
Open item's Property Palette and set Format mask to desired value. For example:
如果您不希望.0以.0结束时,我怀疑您应该能够根据该值以编程方式更改项目的格式掩码。我没有测试这样的事情,但我相信它会起作用。根据您的设计方式和流量时的方式,尴尬的部分可能会决定要使用哪些触发器来设置掩码,然后重置面罩。
set_item_property('text_item1',format_mask,<所需的蒙版>)
如果该项目是多记录块的一部分,则上述内容将无效。
If you don't want the .0 when the value ends with .0, I suspect you should be able to change the item's format mask programmatically based on the value. I haven't tested doing something like this but I believe it would work. Depending on how you designed your and and the flow as you go through it, the awkward part may be deciding which triggers to use to set the mask then reset the mask.
SET_ITEM_PROPERTY ('TEXT_ITEM1', FORMAT_MASK, < desired mask >)
The above would not work if the item is part of a multi-record block.