hello ..
how can I determine the type of triangle through its sides and angles ?
i have problems in understanding how functions are being created and used ;/
plz help me
thanks alot in advance
Well, once you create a function using the PUBLIC FUNCTION or PRIVATE FUNCTION statement, you can then use it just like the builtin functions (such as Mid$() and so on).
Say you want to pass the lengths of three sides as integers and return a decimal value calculated somehow. You'd probably define your function in a code module. Here's a simple example.
 Public Function MyFunction(Parm1 As Long, Parm2 As Long, Parms3 As Long) As Single


' Do your calculation here, based on the values of

' Parm1, Parm2 and Parm3.


' Return your value by assigning it to the

' variable name "MyFunction".

' For example...

MyFunction = Parm1 * Parm2 / Parm3


End Function

You can then use this anywhere in your code, like so...
 Var1 = MyFunction(Var2, Var3, Var4)