Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: timed event boolean Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: January 15 2015 at 07:54 | IP Logged Quote krommetje

Hi all,

tell me if this will work:

I make a GV named holiday which I set to 0 if there is a schoolholiday, I set the GV to 1 if there is no schoolholiday.
Then I put in the boolaenfield of a timed event:
ph_getglobal_n("holiday")....

If the global is 0 the event will not fire, when 1 the event will fire...
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4430
Posted: January 15 2015 at 21:05 | IP Logged Quote dhoward

Peter,

Yes, this will work. Only thing you'd want to do is capitalize the global so it looks like "HOLIDAY".

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: January 15 2015 at 22:45 | IP Logged Quote krommetje

Yes of course I have to capitalize... Thanks.
Now I am going ahead to further enhance this
Thanks Dave
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum