Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
#include <tsssx.idl>
Inherits IDispatch.
Public Methods | |
HRESULT | ToString ([out, retval] BSTR *pVal) |
Get a String representation of this object. More... | |
HRESULT | Name ([out, retval] BSTR *pVal) |
Get the Name property of this object as a String. More... | |
HRESULT | ID ([out, retval] long *pVal) |
Get the ID property of this object as a long. More... | |
HRESULT | Comment ([out, retval] BSTR *pVal) |
Get the Comment property of this object as a String. More... | |
HRESULT | StartDate ([out, retval] DATE *pVal) |
Get the StartDate property of this object as a DATE. More... | |
HRESULT | EndDate ([out, retval] DATE *pVal) |
Get the EndDate property of this object as a DATE. More... | |
HRESULT | GameDurationMinutes ([out, retval] long *pVal) |
Get the GameDurationMinutes property of this object as an long. More... | |
HRESULT | LeagueID ([out, retval] long *pVal) |
Get the LeagueID property of this object as a long. More... | |
HRESULT | MasterScheduleID ([out, retval] long *pVal) |
Get the MasterScheduleID property of this object as a long. More... | |
HRESULT | getMasterSchedule ([out, retval] IMasterSchedule **ppIMasterSchedule) |
Get the IMasterSchedule for this schedule. More... | |
HRESULT | getLeague ([out, retval] ILeague **ppILeague) |
Get the ILeague for this schedule. More... | |
HRESULT | getNumOfTeams ([out, retval] long *plNum) |
Get the number of ITeam's in the schedule. More... | |
HRESULT | getNumOfGames ([out, retval] long *plNum) |
Get the number of IGame's in the schedule. More... | |
HRESULT | getNumOfScheduledGames ([out, retval] long *plNum) |
Get the number of scheduled IGame's in the schedule. More... | |
HRESULT | getNumOfUnscheduledGames ([out, retval] long *plNum) |
Get the number of unscheduled IGame's in the schedule. More... | |
HRESULT | getNumOfTeamGames ([in] long lTeamID,[out, retval] long *plNum) |
Get the number of team IGame's in the schedule. More... | |
HRESULT | getNumOfVenueGames ([in] long lVenueID,[out, retval] long *plNum) |
Get the number of venue IGame's in the schedule. More... | |
HRESULT | getTeams ([out, retval] ITeamCollection **ppICollection) |
Get a collection of all the ITeam's in the schedule. More... | |
HRESULT | getGames ([out, retval] IGameCollection **ppICollection) |
Get a collection of all the IGame's in the schedule. More... | |
HRESULT | getScheduledGames ([out, retval] IGameCollection **ppICollection) |
Get a collection of all the scheduled IGame's in the schedule. More... | |
HRESULT | getUnscheduledGames ([out, retval] IGameCollection **ppICollection) |
Get a collection of all the unscheduled IGame's in the schedule. More... | |
HRESULT | getTeamGames ([in] long lTeamID,[out, retval] IGameCollection **ppICollection) |
Get a collection of all the team's IGame's in the schedule. More... | |
HRESULT | getVenueGames ([in] long lVenueID,[out, retval] IGameCollection **ppICollection) |
Get a collection of all the venue's IGame's in the schedule. More... | |
HRESULT | getHaveGame ([in] long lID,[out, retval] BOOL *fVal) |
Find out whether or not the specified game belongs to this schedule. More... |
The IPracticeSchedule object represents a practice schedule (one in which the home and away teams are the same) in the project. Use this object to get the games, settings, and other information relavant to the practice schedule. Do not create this object directly, instead use the getPracticeSchedule() or getPracticeSchedules() methods of the IProject, ILeague, or ITeam object.
Program ID: TSSSX.PracticeSchedule
Example:
var eSchedules = new Enumerator(league.getPracticeSchedules()); for (; !eSchedules.atEnd(); eSchedules.moveNext()) { oSchedule = eSchedules.item(); // do something with the IPracticeSchedule object Response.WriteLine("There are " + oSchedule.getNumOfGames() + " games in the practice schedule '" + oSchedule.Name + "'"); }
|
Get the Comment property of this object as a String. Example: var sComment = obj.Comment; |
|
Get the EndDate property of this object as a DATE. Example: var end = new Date(schedule.EndDate); Response.Write(end); |
|
Get the GameDurationMinutes property of this object as an long. The GameDurationMinutes property returns the game duration in minutes. If a game is 2 hours, the number of minutes returned would be 120.
var iHours,iMinutes; iHours = schedule.GameDurationMinutes/60; iMinutes = schedule.GameDurationMinutes%60; Response.Write("The game duration is " + iHours + " hours, " + iMinutes + " minutes."); |
|
Get the ID property of this object as a long. Example: var iID = obj.ID; |
|
Get the LeagueID property of this object as a long.
var league = Project.getLeague(schedule.LeagueID); if (league != null) { // do something with the league } |
|
Get the MasterScheduleID property of this object as a long.
var masterschedule = Project.getMasterSchedule(schedule.MasterScheduleID); if (masterschedule != null) { // do something with the masterschedule } |
|
Get the Name property of this object as a String. Example: var sName = obj.Name; |
|
Get the StartDate property of this object as a DATE. Example: var start = new Date(schedule.StartDate); Response.Write(start); |
|
Get a String representation of this object. Example: var sImplicit = "The object '" + obj + "' ToString property was called implicitly."; var sDirect = "The object '" + obj.ToString + "' ToString property was called directly."; |
|
Get a collection of all the IGame's in the schedule.
var obj; var eItems = new Enumerator(schedule.getGames()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Find out whether or not the specified game belongs to this schedule.
var game; var eItems = new Enumerator(Project.getGames()); for (; !eItems.atEnd(); eItems.moveNext()) { game = eItems.item(); if (schedule.getHaveGame(game.ID) == true) { Response.WriteLine("The schedule '" + schedule + "' has the game '" + game + "'"); } }
|
|
Get the ILeague for this schedule.
var league = schedule.getLeague(); if (league != null) { // do something with the league }
|
|
Get the IMasterSchedule for this schedule.
var schedule = schedule.getMasterSchedule(); if (schedule != null) { // do something with the league }
|
|
Get the number of IGame's in the schedule.
var iNum = schedule.getNumOfGames(); |
|
Get the number of scheduled IGame's in the schedule.
var iNum = schedule.getNumOfScheduledGames(); |
|
Get the number of team IGame's in the schedule.
var iNum = schedule.getNumOfTeamGames(team.ID); |
|
Get the number of ITeam's in the schedule.
var iNum = schedule.getNumOfTeams(); |
|
Get the number of unscheduled IGame's in the schedule.
var iNum = schedule.getNumOfUnscheduledGames(); |
|
Get the number of venue IGame's in the schedule.
var iNum = schedule.getNumOfVenueGames(venue.ID); |
|
Get a collection of all the scheduled IGame's in the schedule.
var obj; var eItems = new Enumerator(schedule.getScheduledGames()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a collection of all the team's IGame's in the schedule.
var oGame; var eGames = new Enumerator(schedule.getTeamGames(team.ID)); for (; !eGames.atEnd(); eGames.moveNext()) { oGame = eGames.item(); // do something with the IGame object }
|
|
Get a collection of all the ITeam's in the schedule.
var obj; var eItems = new Enumerator(schedule.getTeams()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a collection of all the unscheduled IGame's in the schedule.
var obj; var eItems = new Enumerator(schedule.getUnscheduledGames()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a collection of all the venue's IGame's in the schedule.
var oGame; var eGames = new Enumerator(schedule.getVenueGames(venue.ID)); for (; !eGames.atEnd(); eGames.moveNext()) { oGame = eGames.item(); // do something with the IGame object }
|
Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
Copyright © 1996-2007, Galactix Software. All rights reserved.
Questions? Comments? Send email to support@galactix.com