This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
Kripton
Voice
Posts: 28 Joined: Tue Jan 06, 2004 6:54 am
Post
by Kripton » Mon Jan 26, 2004 3:25 pm
How do I remove all fields from an array, so there is no data-flied in the array?
U know, 'set arrayname ""' doesn't work
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Jan 26, 2004 3:43 pm
If you mean delete the array then use "array unset your-array" .. also, you can always have a look
here .
Once the game is over, the king and the pawn go back in the same box.
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Mon Jan 26, 2004 3:52 pm
If you want the array to exist but be completely empty, you could do
if you want to remove the entire array, use
or
(the result will be the same, but the plain 'unset' is less verbose
) If you want to create an empty array to reserve the name or whatever, do
Have you ever read "The Manual"?
Kripton
Voice
Posts: 28 Joined: Tue Jan 06, 2004 6:54 am
Post
by Kripton » Tue Jan 27, 2004 1:39 pm
Thanx caesar for the complete TCL-Guide!
I just knew the TCLGuide from SunInet, which explains the most important, but not all functions!
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Tue Jan 27, 2004 3:02 pm
Heh. Your welcome. Yes, is an nice web page. I have sow it in the topic of channel #egghelp on freenode (actualy in topic from the stats page of that channel)
Once the game is over, the king and the pawn go back in the same box.