azayan@bcsaic.UUCP (Ahmed Zayan) (05/02/91)
I'm trying to create a field in devguide(1.1) that takes float and the only option devguide allows text and numeric(integer) fields !! also can i make the sliders min and max values be float!!! Any hints!!! please let me know. Thanks. azayan@atc.boeing.com
doehr@magellan.den.mmc.com (Brett B. Doehr) (05/08/91)
One option is to make the text field alphanumeric. If a value is entered by the user, you can use the function "atof" to convert it to a double (not a float, but close enough for us). To output a float to the text field, use the function "sprintf" to convert it to a string. Not elegant, but works. --Brett. ============================================================| Brett B. Doehr Martin Marietta Astronautics Group | Voice: (303) 977-1504 Internet: doehr@den.mmc.com | Fax: (303) 977-1530 America Online: BrettBD | "Writing software that only a mother could love..." | ============================================================|