Hi,
I'm currently trying to create a maths module (via Compile to Library) however i'm not sure how to get data from a program into the module and then get a result back.
Module Code:
This requires numeric values to be provided from the program and then needs to give TKOFactor back to the program.
Program Code:
This needs to be able to give the values to the class and then get them back in the form of d.
Any and all help would be great. Its been a long time since I used classes in programming to make functions.
I'm currently trying to create a maths module (via Compile to Library) however i'm not sure how to get data from a program into the module and then get a result back.
Module Code:
B4X:
Public Sub TKOFactorC(tkobw As String, tkobv As String, tkobc As String)
(tkobw * tkobv * tkobc) / 7000
End Sub
This requires numeric values to be provided from the program and then needs to give TKOFactor back to the program.
Program Code:
B4X:
Sub Button1_Click
Dim MPBM As MNPocketBallistics
Dim a, b, c, d As String
a = "72"
b = "362"
c = "32"
MPBM.Initialize
d = MPBM.TKOFactorC(a,b,c)
Msgbox(d,"")
End Sub
This needs to be able to give the values to the class and then get them back in the form of d.
Any and all help would be great. Its been a long time since I used classes in programming to make functions.
Last edited: