1) I have three fields that are used to calculate an angle of a conveyor.
Given infopath doesn't have any inbuilt functions for trig, I do in two parts. Infeed_Height - Outfeed_Height, then that answer divided by the length and use the decimal result.
For positive decimal angles I can get conditional formatting and validation.
When the decimal angle turns negative, there is no conditionals that will allow this so I need absolute value.
If I could make the decimal angle have a degree value - wonderful.
2) Can I use the VB trig functions and if so how do I call up?
3) can I use VBA absolute fuvtion - and if so how.
4) where do you start / how do you start say writing an event in vba in Infopath. I figure infopath uses visual studio - that use declarations etc - how do i declare vba functions
Like in the above I wish to check the value of the calculated field and use the absolute value if I cannot change the decimal to a trigonometric value in degrees.
If the calculated value is <= 0.194 (11 Degrees - tan) value is Ok
If value is >0.194 but <0.249 (14 degrees) optional
Value is greater > 0.249 not allowed
Negative values are ok but follow same rules but they are negative
So where do I start with the code? - an example would be great if it can be done.
How to start VB code in infopath for dumbies like me would be great.
Thank you in advance for any consideration of an answer and help.