Solution for tiptop 4gl image file to display a negative number but a positive number

Source: Internet
Author: User

Recently, I encountered a very strange problem in normal use, that is, when a negative number is entered in the amount field of aglt110, it is displayed as a positive number. After a long time, I checked the source code again, modify the screen file and view system parameters,

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/80/wKioL1Q_FcuAONLNAAHIPNLskh4236.jpg "Title =" home.jpg "alt =" wkiol1q_fcuaonlnaahipnlskh4236.jpg "/>

However, the problem still persists, for example:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/80/wKioL1Q_FxqDX6-PAAWHrsrx6cQ735.jpg "Title =" paint.jpg "alt =" wKioL1Q_FxqDX6-PAAWHrsrx6cQ735.jpg "/>

Solution:

Later, after careful observation, we found that the original local currency amount field was formatted using the image file, namely, three-digit, one-comma (,). The problem was found on the Image Element setting page:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4C/80/wKiom1Q_GArgr4fzAAVFXdYVVow450.jpg "Title =" image 2.jpg "alt =" wkiom1q_gargr4fzaavfxdyvvow450.jpg "/>

Later, I tried to remove the format and solved the problem:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/84/wKioL1Q_G_mQi5G3AAMaGktVdE4839.jpg "Title =" image 3.jpg "alt =" wkiol1q_g_mqi5g3aamagktvde4839.jpg "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/83/wKiom1Q_HEyCk3VWAAV1uKDCTXA770.jpg "Title =" image 4.jpg "alt =" wkiom1q_heyck3vwaav1ukdctxa770.jpg "/>

Go to the program and enter the amount to see the result:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/84/wKioL1Q_HYvTte_DAAWhKJY4yEo539.jpg "Title =" image 5.jpg "alt =" wkiol1q_hyvtte_daawhkjy4yeo539.jpg "/>

At present, it seems that we have met our previous requirements: the input negative number can be displayed normally, but the financial requirement is: we still need to display the amount by three or one commas, now we can change the corresponding settings in the Image Element settings:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/83/wKiom1Q_HvahOoE5AAN3VFGo5V0616.jpg "style =" float: none; "Title =" image 6.jpg "alt =" wkiom1q_hvahooe5aan3vfgo5v0616.jpg "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/84/wKioL1Q_Hy6TZ6RAAAWHj2Yfuds438.jpg "style =" float: none; "Title =" image 7.jpg "alt =" wkiol1q_hy6tz6raaawhj2yfuds438.jpg "/>


Let's try again by entering the data:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4C/83/wKiom1Q_H_OQU3bzAAWfVsYJ-wM978.jpg "Title =" face 8.jpg "alt =" wKiom1Q_H_OQU3bzAAWfVsYJ-wM978.jpg "/>

Now, all the problems have been solved.

Summary: When the entered field is a number or amount type, if the parameters and code are correct, the results are not as expected, at this time, you can view the corresponding Image File Settings and try to change some formats, which may solve the problem!

This article is from the "Focus" blog. For more information, contact the author!

Solution for tiptop 4gl image file to display a negative number but a positive number

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.