Hi,
Just trying to get my head around using types in an array... The following represents the fundimental code showing what I'm trying to do but I get a "Compiled java Code Error" during the compilation. Any idea where I'm going wrong? :BangHead:
Sub Globals
Type Pad (Area as string, Description as string, Val as string)
Dim CurrentRec as Pad
Dim Record as Pad
Dim Table1(100,Record)
...
Activity_Create (firsttime as boolean)
CurrentRec.initialize
Record.initialize
...
Sub DisplayRec (Position as int)
CurrentRec = Table1(Position,Record) ' errors here
...
Text1.text = CurrentRec.Area
Text2.text = CurrentRec.Description
...
Sub EditRec (Position as Int)
...
CurrentRec.Area = text1.text
CurrentRec.Description = text2.text
CurrentRec.Val = text3.text
...
Table1(Position,record) = CurrentRec ' & errors here
end sub
Just trying to get my head around using types in an array... The following represents the fundimental code showing what I'm trying to do but I get a "Compiled java Code Error" during the compilation. Any idea where I'm going wrong? :BangHead:
Sub Globals
Type Pad (Area as string, Description as string, Val as string)
Dim CurrentRec as Pad
Dim Record as Pad
Dim Table1(100,Record)
...
Activity_Create (firsttime as boolean)
CurrentRec.initialize
Record.initialize
...
Sub DisplayRec (Position as int)
CurrentRec = Table1(Position,Record) ' errors here
...
Text1.text = CurrentRec.Area
Text2.text = CurrentRec.Description
...
Sub EditRec (Position as Int)
...
CurrentRec.Area = text1.text
CurrentRec.Description = text2.text
CurrentRec.Val = text3.text
...
Table1(Position,record) = CurrentRec ' & errors here
end sub