OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on August 09, 2016, 06:31:30 AM

Title: Textbox filter style and data types
Post by: Jim Short on August 09, 2016, 06:31:30 AM
text box with 3 filter style (numerical units)
From description, I assume numerical looking string characters allowed
   ;;dcl error invalid argument type
   (dcl-control-setText uMill/Outline/DatumRapidPlaneElev 1.2)
   ;;allowed
   (dcl-control-setText uMill/Outline/DatumRapidPlaneElev "1.2")
   ;;allowed
   (dcl-control-setText uMill/Outline/DatumRapidPlaneElev "12")
   ;;blocked by filter
   (dcl-control-setText uMill/Outline/DatumRapidPlaneElev "ab")
   ;;allowed
   (dcl-control-setText uMill/Outline/DatumRapidPlaneElev 11)

Why accept integer but not real number?
Title: Re: Textbox filter style and data types
Post by: owenwengerd on August 09, 2016, 07:00:09 PM
This might be a legacy thing, where original ObjectDCL code accepted integers for string arguments. I know there are numerous such oddities throughout the code that were left in case old code relied on the behavior.
Title: Re: Textbox filter style and data types
Post by: Fred Tomke on August 16, 2016, 05:36:32 AM
Hm, interesting. I was using ObjectDCL from 2002 until 2007 and I've never known that integers were possible to use.
Regards, Fred