Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List

IProject Interface Reference

The IProject object. More...

#include <tsssx.idl>

Inherits IDispatch.


Public Methods

HRESULT ToString ([out, retval] BSTR *pVal)
 Get a String representation of this object. \e. More...

HRESULT Pathname ([out, retval] BSTR *pVal)
 Get the opened project's filename. (property). More...

HRESULT OrganizationName ([out, retval] BSTR *pVal)
 Get the organization's name. (property). More...

HRESULT WebmasterEmail ([out, retval] BSTR *pVal)
 Get the WebmasterEmail property of the object as a String. More...

HRESULT LastModified ([out, retval] DATE *pVal)
 Get the last modified date of this project. (property). More...

HRESULT getObjectType ([in] long lID,[out, retval] int *iType)
 Lookup the type of object based on the ID. More...

HRESULT getLeague ([in] long lLeagueID,[out, retval] ILeague **ppILeague)
 Get the ILeague with the specified ID. More...

HRESULT getTeam ([in] long lTeamID,[out, retval] ITeam **ppITeam)
 Get the ITeam with the specified ID. More...

HRESULT getVenue ([in] long lVenueID,[out, retval] IVenue **ppIVenue)
 Get the IVenue with the specified ID. More...

HRESULT getOfficial ([in] long lOfficialID,[out, retval] IOfficial **ppIOfficial)
 Get the IOfficial with the specified ID. More...

HRESULT getDivision ([in] long lDivisionID,[out, retval] IDivision **ppIDivision)
 Get the IDivision with the specified ID. More...

HRESULT getMasterSchedule ([in] long lScheduleID,[out, retval] IMasterSchedule **ppIMasterSchedule)
 Get the IMasterSchedule with the specified ID. More...

HRESULT getContact ([in] long lContactID,[out, retval] IContact **ppIContact)
 Get the IContact with the specified ID. More...

HRESULT getSponsor ([in] long lSponsorID,[out, retval] ISponsor **ppISponsor)
 Get the ISponsor with the specified ID. More...

HRESULT getGame ([in] long lGameID,[out, retval] IGame **ppIGame)
 Get the IGame with the specified ID. More...

HRESULT getSeasonSchedule ([in] long lSeasonScheduleID,[out, retval] ISeasonSchedule **ppISeasonSchedule)
 Get the ISeasonSchedule with the specified ID. More...

HRESULT getPracticeSchedule ([in] long lPracticeScheduleID,[out, retval] IPracticeSchedule **ppIPracticeSchedule)
 Get the IPracticeSchedule with the specified ID. More...

HRESULT getTournamentSchedule ([in] long lTournamentScheduleID,[out, retval] ITournamentSchedule **ppITournamentSchedule)
 Get the ITournamentSchedule with the specified ID. More...

HRESULT getNumOfLeagues ([out, retval] long *lNum)
 Get the number of ILeague's in the project. More...

HRESULT getNumOfVenues ([out, retval] long *lNum)
 Get the number of IVenue's (fields) in the project. More...

HRESULT getNumOfOfficials ([out, retval] long *lNum)
 Get the number of IOfficial's in the project. More...

HRESULT getNumOfTeams ([out, retval] long *lNum)
 Get the number of ITeam's in the project. More...

HRESULT getNumOfDivisions ([out, retval] long *lNum)
 Get the number of IDivision's in the project. More...

HRESULT getNumOfContacts ([out, retval] long *lNum)
 Get the number of IContact's in the project. More...

HRESULT getNumOfSponsors ([out, retval] long *lNum)
 Get the number of ISponsor's in the project. More...

HRESULT getNumOfGames ([out, retval] long *lNum)
 Get the number of IGame's in the project. More...

HRESULT getNumOfMasterSchedules ([out, retval] long *lNum)
 Get the number of IMasterSchedule's in the project. More...

HRESULT getNumOfSeasonSchedules ([out, retval] long *lNum)
 Get the number of ISeasonSchedule's in the project. More...

HRESULT getNumOfPracticeSchedules ([out, retval] long *lNum)
 Get the number of IPracticeSchedule's in the project. More...

HRESULT getNumOfTournamentSchedules ([out, retval] long *lNum)
 Get the number of ITournamentSchedule's in the project. More...

HRESULT getLeagues ([out, retval] ILeagueCollection **ppILeagueCollection)
 Get a collection of all the ILeague's in the project. More...

HRESULT getVenues ([out, retval] IVenueCollection **ppICollection)
 Get a collection of all the IVenue's in the project. More...

HRESULT getOfficials ([out, retval] IOfficialCollection **ppICollection)
 Get a collection of all the IOfficial's in the project. More...

HRESULT getTeams ([out, retval] ITeamCollection **ppICollection)
 Get a collection of all the ITeam's in the project. More...

HRESULT getDivisions ([out, retval] IDivisionCollection **ppICollection)
 Get a collection of all the IDivision's in the project. More...

HRESULT getContacts ([out, retval] IContactCollection **ppICollection)
 Get a collection of all the IContact's in the project. More...

HRESULT getSponsors ([out, retval] ISponsorCollection **ppICollection)
 Get a collection of all the ISponsor's in the project. More...

HRESULT getGames ([out, retval] IGameCollection **ppICollection)
 Get a collection of all the IGame's in the project. More...

HRESULT getMasterSchedules ([out, retval] IMasterScheduleCollection **ppICollection)
 Get a collection of all the IMasterSchedule's in the project. More...

HRESULT getSeasonSchedules ([out, retval] ISeasonScheduleCollection **ppICollection)
 Get a collection of all the ISeaonsSchedule's in the project. More...

HRESULT getPracticeSchedules ([out, retval] IPracticeScheduleCollection **ppICollection)
 Get a collection of all the IPracticeSchedule's in the project. More...

HRESULT getTournamentSchedules ([out, retval] ITournamentScheduleCollection **ppICollection)
 Get a collection of all the ITournamentSchedule's in the project. More...

HRESULT OrganizationURL ([out, retval] BSTR *pVal)
 Get the organization's web address. (property). More...

HRESULT showImage ([in] long lObjID,[in] BSTR sTagOptions,[out, retval] BSTR *pstrTag)
 Get the HTML <img> tag for the item's Image if it exists. More...

HRESULT showLogo ([in] long lObjID,[in] BSTR sTagOptions,[out, retval] BSTR *pstrTag)
 Get the HTML <img> tag for the item's Logo if it exists. More...

HRESULT OrganizationLogo ([out, retval] BSTR *pVal)
 Get the HTML <img> tag for the Organization's Logo if it exists. More...

HRESULT StyleSheet ([out, retval] BSTR *pVal)
 Gets the current cascading style sheet text. More...

HRESULT StyleSheetLink ([out, retval] BSTR *pVal)
 Displays a link to the current stylesheet. More...


Detailed Description

The IProject object.

The IProject object encapsulates all the data in the Scheduling Project. This is the primary object you interact with to get instances of the other objects in the project.

Note:
Do NOT create the IProject object directly. Instead, use the ITSSS object's openProject() method instead.
Program ID: TSSSX.Project

Example:

    var ITSSS = new ActiveXObject("TSSSX.TSSS");
    var IProject = ITSSS.openProject("c:\\TestProject.tss");

See also:
ITSSS, ITSSS::openProject()


Member Function Documentation

HRESULT IProject::LastModified [out, retval] DATE *    pVal
 

Get the last modified date of this project. (property).

This is useful to display on a webpage or report.

Example:

    var date = new Date(Project.LastModified);

HRESULT IProject::OrganizationLogo [out, retval] BSTR *    pVal
 

Get the HTML <img> tag for the Organization's Logo if it exists.

If the organization has a logo specified, this will return the HTML <img> tag encoded with with the logo filename (the name after it has been copied to the website folder) and the specified options.

Returns:
Returns the img tag string, or an empty string if the organization doesn't have an associated logo.
Example:
    Response.Write(Project.OrganizationLogo);

Result:

    <img src="orglogo.jpg">

HRESULT IProject::OrganizationName [out, retval] BSTR *    pVal
 

Get the organization's name. (property).

The project organization name can be set by choosing Options from the Tools menu on the Team Sports Scheduling System.

Example:

    var sOrgName = Project.OrganizationName;

HRESULT IProject::OrganizationURL [out, retval] BSTR *    pVal
 

Get the organization's web address. (property).

The Organization URL can be set by choosing Options from the Tools menu on the Team Sports Scheduling System.

Example:

    var sOrgURL = Project.OrganizationURL;
    var sLink = "<a href=\"" + sOrgURL + "\">" + sOrgURL + "</a>";

HRESULT IProject::Pathname [out, retval] BSTR *    pVal
 

Get the opened project's filename. (property).

The filename is the full path to the file on the local computer or the network.

Example:

    var sProjectFilename = Project.Pathname;

HRESULT IProject::StyleSheet [out, retval] BSTR *    pVal
 

Gets the current cascading style sheet text.

Gets the text specified in the current stylesheet.css file selected by the user. The user can change the style sheet by choosing Options from the Tools menu.

Returns:
Returns the text in the currently selected stylesheet.css file.
Example:
    Response.Write(Project.StyleSheet);

HRESULT IProject::StyleSheetLink [out, retval] BSTR *    pVal
 

Displays a link to the current stylesheet.

Gets a link which points to the currently selected cascading style sheet.

Returns:
Returns a link (html encoded) to the current stylesheet.
Example:
    Response.Write(Project.StyleSheetLink);

Result:

    <link rel="stylesheet" href="c:\some\folder\stylesheet.css" type="css\text">

HRESULT IProject::ToString [out, retval] BSTR *    pVal
 

Get a String representation of this object. \e.

Example:

    var sImplicit = "The object '" + obj + "' ToString property was called implicitly.";
    var sDirect = "The object '" + obj.ToString + "' ToString property was called directly.";

HRESULT IProject::WebmasterEmail [out, retval] BSTR *    pVal
 

Get the WebmasterEmail property of the object as a String.

The Webmaster email can be set by choosing Options from the Tools menu on the Team Sports Scheduling System.

Example:

    var sEmail = Project.WebmasterEmail;
    var sLink = "<a href=\"mailto:" + sEmail + "\">" + sEmail + "</a>";

HRESULT IProject::getContact [in] long    lContactID,
[out,retval] IContact **    ppIContact
 

Get the IContact with the specified ID.

Parameters:
lContactID  The ID of the IContact you wish to get.
Returns:
Returns the requested IContact object if it exists, null otherwise.
Example:
    var Contact = Project.getContact(iNum);
    if (Contact != null)
    {
        // do something with the Contact
    }
See also:
IContact

HRESULT IProject::getContacts [out,retval] IContactCollection **    ppICollection
 

Get a collection of all the IContact's in the project.

Returns:
Returns a IContactCollection of all the IContact's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getContacts());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IContact, IContactCollection

HRESULT IProject::getDivision [in] long    lDivisionID,
[out,retval] IDivision **    ppIDivision
 

Get the IDivision with the specified ID.

Parameters:
lDivisionID  The ID of the IDivision you wish to get.
Returns:
Returns the requested IDivision object if it exists, null otherwise.
Example:
    var Division = Project.getDivision(iNum);
    if (Division != null)
    {
        // do something with the Division
    }
See also:
IDivision

HRESULT IProject::getDivisions [out,retval] IDivisionCollection **    ppICollection
 

Get a collection of all the IDivision's in the project.

Returns:
Returns a IDivisionCollection of all the IDivision's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getDivisions());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IDivision, IDivisionCollection

HRESULT IProject::getGame [in] long    lGameID,
[out,retval] IGame **    ppIGame
 

Get the IGame with the specified ID.

Parameters:
lGameID  The ID of the IGame you wish to get.
Returns:
Returns the requested IGame object if it exists, null otherwise.
Example:
    var Game = Project.getGame(iNum);
    if (Game != null)
    {
        // do something with the Game
    }
See also:
IGame

HRESULT IProject::getGames [out,retval] IGameCollection **    ppICollection
 

Get a collection of all the IGame's in the project.

Returns:
Returns a IGameCollection of all the IGame's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getGames());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IGame, IGameCollection

HRESULT IProject::getLeague [in] long    lLeagueID,
[out,retval] ILeague **    ppILeague
 

Get the ILeague with the specified ID.

Parameters:
lLeagueID  The ID of the ILeague you wish to get.
Returns:
Returns the requested ILeague object if it exists, null otherwise.
Example:
    var league = Project.getLeague(iNum);
    if (league != null)
    {
        // do something with the league
    }
See also:
ILeague

HRESULT IProject::getLeagues [out,retval] ILeagueCollection **    ppILeagueCollection
 

Get a collection of all the ILeague's in the project.

Returns:
Returns a ILeagueCollection of all the ILeague's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getLeagues());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
ILeague, ILeagueCollection

HRESULT IProject::getMasterSchedule [in] long    lScheduleID,
[out,retval] IMasterSchedule **    ppIMasterSchedule
 

Get the IMasterSchedule with the specified ID.

Parameters:
lScheduleID  The ID of the IMasterSchedule you wish to get.
Returns:
Returns the requested IMasterSchedule object if it exists, null otherwise.
Example:
    var schedule = Project.getMasterSchedule(iNum);
    if (schedule != null)
    {
        // do something with the schedule
    }
See also:
IMasterSchedule

HRESULT IProject::getMasterSchedules [out,retval] IMasterScheduleCollection **    ppICollection
 

Get a collection of all the IMasterSchedule's in the project.

Returns:
Returns a IMasterScheduleCollection of all the IMasterSchedule's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getMasterSchedules());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IMasterSchedule, IMasterScheduleCollection

HRESULT IProject::getNumOfContacts [out,retval] long *    lNum
 

Get the number of IContact's in the project.

Returns:
Returns the number of IContact's in the project.
Example:
    var iNum = Project.getNumOfContacts();

HRESULT IProject::getNumOfDivisions [out,retval] long *    lNum
 

Get the number of IDivision's in the project.

Returns:
Returns the number of IDivision's in the project.
Example:
    var iNum = Project.getNumOfDivisions();

HRESULT IProject::getNumOfGames [out,retval] long *    lNum
 

Get the number of IGame's in the project.

Returns:
Returns the number of IGame's in the project.
Example:
    var iNum = Project.getNumOfGames();

HRESULT IProject::getNumOfLeagues [out,retval] long *    lNum
 

Get the number of ILeague's in the project.

Returns:
Returns the number of ILeague's in the project.
Example:
    var iNum = Project.getNumOfLeagues();

HRESULT IProject::getNumOfMasterSchedules [out,retval] long *    lNum
 

Get the number of IMasterSchedule's in the project.

Returns:
Returns the number of IMasterSchedule's in the project.
Example:
    var iNum = Project.getNumOfMasterSchedules();

HRESULT IProject::getNumOfOfficials [out,retval] long *    lNum
 

Get the number of IOfficial's in the project.

Returns:
Returns the number of IOfficial's in the project.
Example:
    var iNum = Project.getNumOfOfficials();

HRESULT IProject::getNumOfPracticeSchedules [out,retval] long *    lNum
 

Get the number of IPracticeSchedule's in the project.

Returns:
Returns the number of IPracticeSchedule's in the project.
Example:
    var iNum = Project.getNumOfPracticeSchedules();

HRESULT IProject::getNumOfSeasonSchedules [out,retval] long *    lNum
 

Get the number of ISeasonSchedule's in the project.

Returns:
Returns the number of ISeasonSchedule's in the project.
Example:
    var iNum = Project.getNumOfSeasonSchedules();

HRESULT IProject::getNumOfSponsors [out,retval] long *    lNum
 

Get the number of ISponsor's in the project.

Returns:
Returns the number of ISponsor's in the project.
Example:
    var iNum = Project.getNumOfSponsors();

HRESULT IProject::getNumOfTeams [out,retval] long *    lNum
 

Get the number of ITeam's in the project.

Returns:
Returns the number of ITeam's in the project.
Example:
    var iNum = Project.getNumOfTeams();

HRESULT IProject::getNumOfTournamentSchedules [out,retval] long *    lNum
 

Get the number of ITournamentSchedule's in the project.

Returns:
Returns the number of ITournamentSchedule's in the project.
Example:
    var iNum = Project.getNumOfTournamentSchedules();

HRESULT IProject::getNumOfVenues [out,retval] long *    lNum
 

Get the number of IVenue's (fields) in the project.

Returns:
Returns the number of IVenue's in the project.
Example:
    var iNum = Project.getNumOfVenues();

HRESULT IProject::getObjectType [in] long    lID,
[out,retval] int *    iType
 

Lookup the type of object based on the ID.

Encoded into an object's ID is the type of object it represents. This means you can figure out what type of object you are looking at by only knowing it's ID. The table below describes the correlation between the integer value returned and what type it represents.

Parameters:
lID  The ID of the object you want to find the type of.
Returns:
Returns an integer representing one of the following values:
0Unknown Type
1ILeague
2ITeam
3IVenue
4IOfficial
5IMasterSchedule
6IGame
7IContact
8ISeasonSchedule
9IPracticeSchedule
10ITournamentSchedule
11IDivision
12ISponsor
Example:
    var iType = Project.getObjectType(obj.ID);
    if (iType == 1)
    {
        // this is an ILeague object
    }

HRESULT IProject::getOfficial [in] long    lOfficialID,
[out,retval] IOfficial **    ppIOfficial
 

Get the IOfficial with the specified ID.

Parameters:
lOfficialID  The ID of the IOfficial you wish to get.
Returns:
Returns the requested IOfficial object if it exists, null otherwise.
Example:
    var Official = Project.getOfficial(iNum);
    if (Official != null)
    {
        // do something with the Official
    }
See also:
IOfficial

HRESULT IProject::getOfficials [out,retval] IOfficialCollection **    ppICollection
 

Get a collection of all the IOfficial's in the project.

Returns:
Returns a IOfficialCollection of all the IOfficial's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getOfficials());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IOfficial, IOfficialCollection

HRESULT IProject::getPracticeSchedule [in] long    lPracticeScheduleID,
[out,retval] IPracticeSchedule **    ppIPracticeSchedule
 

Get the IPracticeSchedule with the specified ID.

Parameters:
lPracticeScheduleID  The ID of the IPracticeSchedule you wish to get.
Returns:
Returns the requested IPracticeSchedule object if it exists, null otherwise.
Example:
    var PracticeSchedule = Project.getPracticeSchedule(iNum);
    if (PracticeSchedule != null)
    {
        // do something with the PracticeSchedule
    }
See also:
IPracticeSchedule

HRESULT IProject::getPracticeSchedules [out,retval] IPracticeScheduleCollection **    ppICollection
 

Get a collection of all the IPracticeSchedule's in the project.

Returns:
Returns a IPracticeScheduleCollection of all the IPracticeSchedule's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getPracticeSchedules());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IPracticeSchedule, IPracticeScheduleCollection

HRESULT IProject::getSeasonSchedule [in] long    lSeasonScheduleID,
[out,retval] ISeasonSchedule **    ppISeasonSchedule
 

Get the ISeasonSchedule with the specified ID.

A ISeasonSchedule is a round-robin type schedule.

Parameters:
lSeasonScheduleID  The ID of the ISeasonSchedule you wish to get.
Returns:
Returns the requested ISeasonSchedule object if it exists, null otherwise.
Example:
    var SeasonSchedule = Project.getSeasonSchedule(iNum);
    if (SeasonSchedule != null)
    {
        // do something with the SeasonSchedule
    }
See also:
ISeasonSchedule

HRESULT IProject::getSeasonSchedules [out,retval] ISeasonScheduleCollection **    ppICollection
 

Get a collection of all the ISeaonsSchedule's in the project.

Returns:
Returns a ISeasonScheduleCollection of all the ISeaonsSchedule's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getSeaonsSchedules());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
ISeasonSchedule, ISeasonScheduleCollection

HRESULT IProject::getSponsor [in] long    lSponsorID,
[out,retval] ISponsor **    ppISponsor
 

Get the ISponsor with the specified ID.

Parameters:
lSponsorID  The ID of the ISponsor you wish to get.
Returns:
Returns the requested ISponsor object if it exists, null otherwise.
Example:
    var Sponsor = Project.getSponsor(iNum);
    if (Sponsor != null)
    {
        // do something with the Sponsor
    }
See also:
ISponsor

HRESULT IProject::getSponsors [out,retval] ISponsorCollection **    ppICollection
 

Get a collection of all the ISponsor's in the project.

Returns:
Returns a ISponsorCollection of all the ISponsor's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getSponsors());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
ISponsor, ISponsorCollection

HRESULT IProject::getTeam [in] long    lTeamID,
[out,retval] ITeam **    ppITeam
 

Get the ITeam with the specified ID.

Parameters:
lTeamID  The ID of the ITeam you wish to get.
Returns:
Returns the requested ITeam object if it exists, null otherwise.
Example:
    var team = Project.getTeam(iNum);
    if (team != null)
    {
        // do something with the team
    }
See also:
ITeam

HRESULT IProject::getTeams [out,retval] ITeamCollection **    ppICollection
 

Get a collection of all the ITeam's in the project.

Returns:
Returns a ITeamCollection of all the ITeam's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getTeams());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
ITeam, ITeamCollection

HRESULT IProject::getTournamentSchedule [in] long    lTournamentScheduleID,
[out,retval] ITournamentSchedule **    ppITournamentSchedule
 

Get the ITournamentSchedule with the specified ID.

Parameters:
lTournamentScheduleID  The ID of the ITournamentSchedule you wish to get.
Returns:
Returns the requested ITournamentSchedule object if it exists, null otherwise.
Example:
    var TournamentSchedule = Project.getTournamentSchedule(iNum);
    if (TournamentSchedule != null)
    {
        // do something with the TournamentSchedule
    }
See also:
ITournamentSchedule

HRESULT IProject::getTournamentSchedules [out,retval] ITournamentScheduleCollection **    ppICollection
 

Get a collection of all the ITournamentSchedule's in the project.

Returns:
Returns a ITournamentScheduleCollection of all the ITournamentSchedule's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getTournamentSchedules());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
ITournamentSchedule, ITournamentScheduleCollection

HRESULT IProject::getVenue [in] long    lVenueID,
[out,retval] IVenue **    ppIVenue
 

Get the IVenue with the specified ID.

Parameters:
lVenueID  The ID of the IVenue you wish to get.
Returns:
Returns the requested IVenue object if it exists, null otherwise.
Example:
    var venue = Project.getVenue(iNum);
    if (venue != null)
    {
        // do something with the venue
    }
See also:
IVenue

HRESULT IProject::getVenues [out,retval] IVenueCollection **    ppICollection
 

Get a collection of all the IVenue's in the project.

Returns:
Returns a IVenueCollection of all the IVenue's in the project.
Example:
    var obj;
    var eItems = new Enumerator(Project.getVenues());
    for (; !eItems.atEnd(); eItems.moveNext())
    {
        obj = eItems.item();
        // do something with the obj
    }
See also:
IVenue, IVenueCollection

HRESULT IProject::showImage [in] long    lObjID,
[in] BSTR    sTagOptions,
[out, retval] BSTR *    pstrTag
 

Get the HTML <img> tag for the item's Image if it exists.

If the specified object has an image specified, this will return the HTML <img> tag encoded with with the image filename (the name after it has been copied to the website folder) and the specified options.

Parameters:
lObjID  The ID of the object whose image you wish to get.
sTagOptions  Any optional tags you would like output in the <img> tag.
Returns:
Returns the image tag string, or an empty string if the object doesn't have an associated image.
Example:
    Response.Write(Project.showImage(Team.ID,"class=teamimg id=img" + Team.ID);

Result:

    <img src="30020img.jpg" class=teamimg id=img30020 >

HRESULT IProject::showLogo [in] long    lObjID,
[in] BSTR    sTagOptions,
[out, retval] BSTR *    pstrTag
 

Get the HTML <img> tag for the item's Logo if it exists.

If the specified object has a logo specified, this will return the HTML <img> tag encoded with with the logo filename (the name after it has been copied to the website folder) and the specified options.

Parameters:
lObjID  The ID of the object whose logo you wish to get.
sTagOptions  Any optional tags you would like output in the <img> tag.
Returns:
Returns the img tag string, or an empty string if the object doesn't have an associated logo.
Example:
    Response.Write(Project.showLogo(Team.ID,"class=teamlogo id=logo" + Team.ID);

Result:

    <img src="30020logo.jpg" class=teamlogo id=logo30020 >


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