The Daily Click ::. Forums ::. Klik Coding Help ::. List object problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Santa



Registered
  19/05/2003
Points
  644
26th May, 2003 at 07:34:41 -

Wanted to keep adding a x co-ordinate to a list object but it woulkd only let me add alpha-numeric values

(in TGF)

anyone any ideas?

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
27th May, 2003 at 00:55:05 -

I'm a little confused by what your trying to ask, but "technically" you cant add numbers to a list object. Instead, use the str$() function to turn it into a string. Then you can use val() to turn it back into a number. For example:

List :: Add Line str$(Value("Counter"))

Counter :: Set Value Val(GetLine$(List))

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
27th May, 2003 at 01:00:23 -

Btw, if you keep adding a x pos to a list object. You are gonna get one huge list object, you might want to just use a string or when ever the x pos changes add a line.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click