Function not allowed within a procedure
问题 I have an assignment to write a macro in LibreOffice that will code a message using XOR operation. I get the problem: Function not allowed within a procedure. when I try to run the macro. This is the code: REM ***** BASIC ***** Sub Main end Sub function izracunajHash(geslo, zacetni_hash) zacetni_hash = 17520 hash = zacetni_hash mask = &H00FFFFFF dolzina = len(geslo) If dolzina > 0 Then for f=1 to dolzina step +1 podniz = mid(geslo,dolzina,1) char = Asc(podniz) hash = 33*hash + char hash =