Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Record Arrays
#3
missing index too in the inputs

this is fixed unless you want to actually input 2 sets of data
Code: (Select All)
Type Motorrad
    Modell As String * 30
    Kilowatt As Double
    Preis As Double
End Type

Dim MotorradMarken(2) As Motorrad

Dim As Integer anzahl, satzNummer

satzNummer = 1
Do
    Input "Modell    : ", MotorradMarken(satzNummer).Modell
    Input "Kilowatt  : ", MotorradMarken(satzNummer).Kilowatt
    Input "Preis      : ", MotorradMarken(satzNummer).Preis

    satzNummer = satzNummer + 1
Loop Until satzNummer = 2 'or 3?

For anzahl = 1 To satzNummer - 1
    Print MotorradMarken(anzahl).Modell
    Print MotorradMarken(anzahl).Kilowatt
    Print MotorradMarken(anzahl).Preis
Next
b = b + ...
Reply


Messages In This Thread
Record Arrays - by Kernelpanic - 07-01-2024, 08:34 PM
RE: Record Arrays - by DSMan195276 - 07-01-2024, 08:48 PM
RE: Record Arrays - by TerryRitchie - 07-01-2024, 09:42 PM
RE: Record Arrays - by bplus - 07-01-2024, 09:00 PM
RE: Record Arrays - by Kernelpanic - 07-01-2024, 10:13 PM
RE: Record Arrays - by Jack - 07-01-2024, 10:37 PM
RE: Record Arrays - by Kernelpanic - 07-02-2024, 05:53 PM



Users browsing this thread: 2 Guest(s)