- >"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24p --directory="Z:\home\ndudman\source\swapper/" --project="test2.pjt"
Internal error: procedure.cpp(891), Rev 1263: missing user type information, "test2.bas" line 9
>Exit code: 1
Code: Select all
structure abcS
Dim a as byte
end structure
function abc() as abcS
abc.a = 1
end function
function abcd() as myTimeModule.MyTimeStamp
Dim ts as myTimeModule.MyTimeStamp
myGetTime(ts)
abcd = ts
end function
sub main()
Dim ts as myTimeModule.MyTimeStamp
Dim b as abcS = abc()
Debug.print b.a
end sub
Code: Select all
public Structure MyDate
Public year as UnsignedInteger
Public month as Byte
Public day as Byte
End Structure
public Structure MyTime
Public hour as Byte
Public minute as Byte
Public seconds as Single
End Structure
public Structure MyTimeStamp
Public tdate as MyDate
Public ttime as MyTime
Private isCurrent as Boolean
End Structure
public sub myGetTime(byRef ts as MyTimeStamp)
Call GetTimeStamp(ts.tdate.year, ts.tdate.month, ts.tdate.day, _
ts.ttime.hour, ts.ttime.minute, ts.ttime.seconds)
end sub
Thanks
Neil