Jump to content


Photo

Setting functions inside variables


  • Please log in to reply
2 replies to this topic

#1 Shwaza

Shwaza
  • Members
  • Pip
  • Newbie
  • 5 posts

Posted 04 June 2006 - 10:54 PM

Hi, I'm trying to set a variable which can be used throughout the script inside of a function, is that possible? (And I don't want to return things)

Thanks :)

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 04 June 2006 - 11:06 PM

You could use a global but Id'e try to avoid it.

#3 Shwaza

Shwaza
  • Members
  • Pip
  • Newbie
  • 5 posts

Posted 04 June 2006 - 11:39 PM

Thanks. Anyone have other alternatives? If not I guess I'll use globals.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users