10-16-2022, 09:35 PM
There are coincidences! I had a problem today with calling a function in "Select ... Case". There are no problems with a procedure, but it didn't work with the function. Maybe anyone know why?
Code: (Select All)
Declare Sub Eingabe()
Declare Sub Lesen()
Declare Function SatzLesen(0)
Dim As Integer auswahl
Nochmal:
Cls
auswahl = 0
Locate 3, 4
Print "Waehlen Sie das gewuenschte Programm."
Locate 6, 10
Print "In Datei schreiben -> 1"
Locate 7, 10
Print "Datei lesen -> 2"
Locate 8, 10
Print "Bestimmten Satz lesen -> 3"
Locate 9, 10
Print "Programm beenden -> 4"
Locate 11, 4
Input "Ihre Wahl bitte: ", auswahl
Print
Select Case auswahl
Case 1
Call Eingabe
Case 2
Call Lesen
Case 3
SatzLesen
Case 4
End
Case Else
Beep: Locate 12, 4
Print "Falsche Eingabe!"
Sleep 1
GoTo Nochmal
End Select