7 % 5 = 2, weil 7 / 5 = 1 Rest: 2
Code: Alles auswählen
If Zahl % 13 = 0
Debug Str(Zahl)+" ist duch 13 teilbar."
EndIf
Code: Alles auswählen
If Zahl % 13 = 0
Debug Str(Zahl)+" ist duch 13 teilbar."
EndIf
Code: Alles auswählen
Procedure.s StringField(String$, Index, TrennString$)
Stelle = 1-Len(TrennString$)
For n = 1 To Index
x = Stelle+Len(TrennString$)
Stelle = FindString(String$+TrennString$, TrennString$, x)
If Stelle = 0 : n = Index : EndIf
Next n
If Stelle
NewString$ = Mid(String$, x, Stelle-x)
EndIf
ProcedureReturn NewString$
EndProcedure