Need help on reporting perimeter of an ellipse. I can get length and width NOT Perimeter!!
I am using v3.5 MR2
Thanks.
I am using v3.5 MR2
Thanks.
[COLOR="RoyalBlue"]Sub[/COLOR] main(a [COLOR="royalblue"]As Double[/COLOR], b [COLOR="royalblue"]As Double[/COLOR]) [COLOR="royalblue"]Dim[/COLOR] dblTheResult [COLOR="royalblue"]As Double[/COLOR] dblTheResult = [COLOR="SeaGreen"]'do your math here, this is where you perform math on a and b[/COLOR] [COLOR="royalblue"]Dim[/COLOR] strTheFile [COLOR="royalblue"]As String[/COLOR] strTheFile = "C:\Test.txt" [COLOR="royalblue"]Open[/COLOR] strTheFile [COLOR="royalblue"]For Output As[/COLOR] #1 [COLOR="royalblue"]Write[/COLOR] #1, dblTheResult [COLOR="royalblue"]Close[/COLOR] #1 End Sub
ASSIGN/A_VALUE = where ever your a value comes from goes here ASSIGN/B_VALUE = where ever your b value comes from goes here CS1 =SCRIPT/FILENAME= C:\DoSomeMath.BAS FUNCTION/Main,SHOW=YES,A_VALUE,B_VALUE,, STARTSCRIPT/ ENDSCRIPT/ FPTR =FILE/OPEN,C:\TEST.TXT,READ V1 =FILE/READLINE,FPTR,{THE_RESULT} FILE/CLOSE,FPTR
Comment