I have the following function in my Libre Office macro:
Function izracunajHash(geslo As String, zacetni_hash As Integer)
If zacetni_hash = 1 Then
izracunajHash = 5
Else
izracunajHash = 1
End If
End Function
I call it this way inside Sub Main
print izracunajHash("Geslo", 5)
And it gives me the error Argument not optional
on the second line of code If zacetni_hash = 1 Then
.
What is the problem here?