This is simple problem I know, but I'm my head is still in Qbasic mode which is where this code works
Type Inventory
Inv1 As String * 40
Inv2 As String * 40
Inv3 As String * 40
Inv4 As String * 40
Inv5 As String * 40
Inv6 As String * 40
Inv7 As String * 40
Inv8 As String * 40
Inv9 As String * 40
Inv10 As String * 40
Inv11 As String * 40
End Type
Dim you As Inventory
Data "Phaser", "Rations", "Flashlight", "Disrupter", "Communicator", "Code Key A", "Code Key B", "Code Key C", "Tricorder", "Tricorder Adapter", " "
Error occurs at "Phaser" "Compile error: invalid outside procedure"
Type Inventory
Inv1 As String * 40
Inv2 As String * 40
Inv3 As String * 40
Inv4 As String * 40
Inv5 As String * 40
Inv6 As String * 40
Inv7 As String * 40
Inv8 As String * 40
Inv9 As String * 40
Inv10 As String * 40
Inv11 As String * 40
End Type
Dim you As Inventory
Data "Phaser", "Rations", "Flashlight", "Disrupter", "Communicator", "Code Key A", "Code Key B", "Code Key C", "Tricorder", "Tricorder Adapter", " "
Error occurs at "Phaser" "Compile error: invalid outside procedure"