GAH!! MY BRAIN HURTS!

Blitz3D Forums/Blitz3D Beginners Area/GAH!! MY BRAIN HURTS!

This error is because your variable "q" was declared as a string-variable within your function declaration:
Function GetQuestion$(q$)

Further within the function you re-use the same variable
for storing a TQuestion type:
q.TQuestion = New TQuestion
q/question$ = q$

Within this function, you could use another variable for storing the TQuestion type.
This last bit is a bit confusing, as you want to store a TQuestion type variable into q, while q already has a string assigned to it.
If Blitz where to convert (which it doesn't) your q-string into a q-TQuestion type, your string would be gone (overwritten by a new TQuestion type object) and you would store the handle of the q-variable into q/question$.