31
VB and the development of wizards / Easy way to always have a positive value in a DRO field
« on: May 09, 2008, 05:34:31 AM »
Is there an easy way to always force a positive value into a DRO, I have a small calculator I've made for working out a lead (similar to a drill flute), it works great but it returns a negative value.
Is it possible to change the following line to make it always output a positive value?
SetOEMDRO (1203,3.141592654*Ø/Tan(AngleinRadians)) 'This normally works out to a negative value, but the value in a positive is correct.
Is it possible to change the following line to make it always output a positive value?
SetOEMDRO (1203,3.141592654*Ø/Tan(AngleinRadians)) 'This normally works out to a negative value, but the value in a positive is correct.