Hello all, this may seem like a noob question, although i'am a noob in Basic4Android, i'm trying to create a sub which i will call by clicking on a button,
Sub CalculateResistors (R1 As Double, R2 As Double) As Double
Dim S2 As Int
Dim S1 As Int
S2 = 1/(frequency * c * 0.693)
S1 = S2 * DutyCycle / 100
R2 = S2 - S1
R1 = S1 - R2
End Sub
when i call this sub like this, CalculateResistors(R1, R2) it doesn't return any values, can anyone help me with this, i'm sure is something very simple, but i can't figure it out, anybody?
thanks,
Walter:sign0085:
Sub CalculateResistors (R1 As Double, R2 As Double) As Double
Dim S2 As Int
Dim S1 As Int
S2 = 1/(frequency * c * 0.693)
S1 = S2 * DutyCycle / 100
R2 = S2 - S1
R1 = S1 - R2
End Sub
when i call this sub like this, CalculateResistors(R1, R2) it doesn't return any values, can anyone help me with this, i'm sure is something very simple, but i can't figure it out, anybody?
thanks,
Walter:sign0085: