Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 04 MAY 2001 07:51:24PM Mike Parrish wrote:

Hi all,

Ok, so it's been a while since I've worked with popups and Iconv/Oconv MD4 conversion, so perhaps I'm just overlooking something really simple. That or I'm not holding my mouth right.

I have a file that stores fractions (1/16, 3-3/8, etc) and their decimal equivalents. The fractions field is the key field. In the data entry form and in the dictionary, the Decimal field is MD4 for validation and conversion. In the form, the decimals display just fine, and are stored in the database in the internal format (sans decimal point). The popup I want to use in another form on a control with MD4 conversion is supposed return the decimal value, not the key, which it does. However, it only returns the internal value (the popup format for Decimal is MD4 as well). So I end up with a value of 625 instead of .0625 for 1/16. No amount of fiddling seems to pass .0625 to the control, tho in the popup itself, the value is correctly displayed.

Any clues as to what I've done wrong?

TIA,

Mike


At 04 MAY 2001 09:03PM Barry Stevens wrote:

Are you passing the internal value return from the popup to the INVALUE property of the control, therefore displaying as 0.0625

Barry


At 04 MAY 2001 09:05PM Barry Stevens wrote:

PS: Make sure the control has a Iconv/Oconv MD4.


At 08 MAY 2001 07:57PM Mike Parrish wrote:

Hi Barry,

At this point I'm not certain what POPUP was returning, seeing as the dictionary validation and conversion for the field were both set to MD4 and in POPUP, the field conversion was set to MD4 as well. I finally did manage to get it to work by writing a quick and dirty stored procedure that called POPUP and then did an Iconv/Oconv on the result (I don't remember which one off the top of my head). Now the value returned from the popup displays properly in the form control and is stored in the LH file in internal format. I'm just glad I have my old ARev installed here too for just such emergencies! TCL commands are SOOOO much easier!

Thanks mucho,

Mike

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/791c99237f62c8c985256a4200830c80.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1