Notifications
Clear all
Topic starter
Has anyone setup coding to take Inches into Feet & Inches?
Say from the obsterm Height that is entered in Inches
Posted : March 28, 2012 6:34 am
Without actually testing it....
NumberVar nInches := 0; NumberVar nFeet := 0; nFeet := Val({Obs.ObsValue}) \ 12; //yes, I meant to type it backwards :-) nInches := Val({Obs.ObsValue}) - (nFeet * 12); ToText(nFeet) + " ft. " + ToText(nInches) + " in.";
Posted : March 28, 2012 6:55 am
Topic starter
Is that for CR?
Posted : March 28, 2012 6:59 am
Yes, sorry, it's for CR. Replace Obs.ObsValue with whatever's most suitable -- that would probably work as a custom function with minimal tweaks. Save it up to your Repository, and you'll have it available for all your reports that need it.
Posted : March 28, 2012 7:01 am
Topic starter
I will save it, but Im looking for something in a form. 😀
Posted : March 28, 2012 7:03 am
Then you probably should have said so. 🙂 Even better, you probably should have posted in the "Forms Development" forum...
Posted : March 28, 2012 7:15 am
Topic starter
Doh! I didnt even see the forms development forum.
Posted : March 28, 2012 7:18 am