Simply type question | store text ?

Blitz3D Forums/Blitz3D Beginners Area/Simply type question | store text ?

GC-Martijn(Posted 2003) [#1]
H!

How could I get text in a field ?
When I do that like below I get a 0

It must be possible / if not then I want to know a other way to do that.

(as you can see , still learning)

Type playerdata
	Field not_number
	Field number
End Type

player1.playerdata 	= New playerdata

player1\not_number 	= "text"
player1\number		= 2342352

Print player1.playerdata\not_number	;gives a 0
Print player1.playerdata\number

While Not KeyHit(1)
Wend
End



DarkNature(Posted 2003) [#2]
try
not_number$
.

the $ identifies the variable (field in this case) as text.

have fun.


GC-Martijn(Posted 2003) [#3]
Type playerdata
	Field not_number$
	Field number
End Type


now it works :)
I know it was simple

---thanks


DarkNature(Posted 2003) [#4]
pleasure :)