<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>18 Feb 2015 18:40:00 Z</lastBuildDate><pubDate>15 Feb 2015 14:19:00 Z</pubDate><description>Hi everyone -&#13;
&#13;
I have a 1 or 2 dozen projects that use the same Project init code. It's a pain to update them all as things change. Is it possible to reference a file or something in the init code so I can change just that one file? Or perhaps I could put the code somewhere and then share it among projects?&#13;
&#13;
Thanks - J&#13;
&#13;
Here's the code fyi:&#13;
&#13;
Nation(nationAmerican)&#13;
&#13;
//Set Global Variables&#13;
gpsSQL is string&#13;
&#13;
//Set Global Class Names&#13;
gpoDB is clDBase&#13;
gpoEmail is clEmail&#13;
gpoError is clError&#13;
gpoPrj is clProject&#13;
//gpoAttn is clAttendance&#13;
//gpoLogin is clLogin&#13;
//gpoMemberships is clMemberships&#13;
//gpoRanks is clRanks&#13;
&#13;
//Set Data Sources Variable Names&#13;
gpsdAttendanceRecords is Data Source&#13;
gpsdClasses is Data Source&#13;
gpsdClassEnrollments is Data Source&#13;
gpsdComm is Data Source&#13;
gpsdCommRecip is Data Source&#13;
gpsdContacts is Data Source&#13;
gpsdEvents is Data Source&#13;
gpsdEventRegistrations is Data Source&#13;
gpsdInvoices is Data Source&#13;
gpsdInvoiceLineItem is Data Source&#13;
gpsdLibrary is Data Source&#13;
gpsdLibrarytemplates is Data Source&#13;
gpsdListItems is Data Source&#13;
gpsdLogin is Data Source&#13;
gpsdLoginLogs is Data Source&#13;
gpsdLogs is Data Source&#13;
gpsdPrograms is Data Source&#13;
gpsdProgramEnrollments is Data Source&#13;
gpsdRanks is Data Source&#13;
gpsdRankLogs is Data Source&#13;
gpsdReportDataSource is Data Source&#13;
gpsdSelectedList is Data Source&#13;
gpsdStudioInfo is Data Source&#13;
gpsdTests is Data Source&#13;
gpsdTestResults is Data Source&#13;
gpsdTestRegistrations is Data Source&#13;
gpsdWebsite is Data Source&#13;
gpsdWebsiteMenuItems is Data Source&#13;
gpsdWebsitePages is Data Source&#13;
gpsdWebsiteTemplates is Data Source&#13;
&#13;
//Set MAFA Data Source Variable Names&#13;
gpsdMAFALibrary is Data Source&#13;
&#13;
//Initialize Database and Connection to server&#13;
gpoDB:InitDbase()&#13;
gpoPrj:GetURLParameters() //has to run after InitDbase&#13;
gpoDB:MAFA_Dbase_Open_Master()&#13;
&#13;
//Open Data Sources&#13;
gpoDB:Init_HFAttendance()&#13;
gpoDB:Init_HFClasses()&#13;
gpoDB:Init_HFClientClasses()&#13;
gpoDB:Init_HFClientPrograms()&#13;
gpoDB:Init_HFComm()&#13;
gpoDB:Init_HFCommRecip()&#13;
gpoDB:Init_HFContact()&#13;
gpoDB:Init_HFEvents()&#13;
gpoDB:Init_HFEventRegistrations()&#13;
gpoDB:Init_HFInvoices()&#13;
gpoDB:Init_HFInvoiceLineItem()&#13;
gpoDB:Init_HFLibrary()&#13;
gpoDB:Init_HFLibraryTemplates()&#13;
gpoDB:Init_HFListItems()&#13;
gpoDB:Init_HFLoginLogs()&#13;
gpoDB:Init_HFLogs()&#13;
gpoDB:Init_HFPrograms()&#13;
gpoDB:Init_HFRanks()&#13;
gpoDB:Init_HFRankLogs()&#13;
gpoDB:Init_HFSelectedList()&#13;
gpoDB:Init_HFStudioInfo()&#13;
gpoDB:Init_HFTests()&#13;
gpoDB:Init_HFTestResults()&#13;
gpoDB:Init_HFTestRegistrations()&#13;
gpoDB:Init_HFWebsite()&#13;
gpoDB:Init_HFWebsitePages()&#13;
gpoDB:Init_HFWebsiteMenuItems()&#13;
gpoDB:Init_HFWebsiteTemplates()&#13;
&#13;
//Set Initial Message&#13;
gpoPrj:m_sNotify = "Welcome to the MAFA Studio Manager"&#13;
&#13;
//Run Various setup processes&#13;
gpoPrj:Studio_GetInfo()&#13;
gpoPrj:Session_GetSessionID()&#13;
gpoPrj:Session_GetInfo()&#13;
IF InTestMode() = False THEN&#13;
gpoPrj:Session_TestIfExpired()&#13;
END&#13;
&#13;
//START PROJECT SPECIFIC CODE:</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code/read.awp</link><title>WB19 - Project Init Code</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50532/read.awp</comments><pubDate>18 Feb 2015 18:40:00 Z</pubDate><description>Ah - ok.&#13;
&#13;
So when it publishes, it pulls in the extern parts and brings it all together. Got it!&#13;
&#13;
thank you - that is very h…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50532/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50532/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code/read.awp">WB19 - Project Init Code</source><title>Re: WB19 - Project Init Code</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50531/read.awp</comments><pubDate>18 Feb 2015 18:37:00 Z</pubDate><description>Hi Joel&#13;
&#13;
you are confusing your source code with the publish version... We were talking about an extern of SOURCE code... It d…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50531/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50531/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code/read.awp">WB19 - Project Init Code</source><title>Re: WB19 - Project Init Code</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50529/read.awp</comments><pubDate>18 Feb 2015 15:12:00 Z</pubDate><description>Hi again Fabrice -&#13;
&#13;
I haven't tried it yet, but I have a question. Is there a place I can put this text file - in a project, s…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50529/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50529/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code/read.awp">WB19 - Project Init Code</source><title>Re: WB19 - Project Init Code</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50521/read.awp</comments><pubDate>17 Feb 2015 15:34:00 Z</pubDate><description>Thank you Fabrice - I'll give it a try!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50521/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50521/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code/read.awp">WB19 - Project Init Code</source><title>Re: WB19 - Project Init Code</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50492/read.awp</comments><pubDate>15 Feb 2015 16:39:00 Z</pubDate><description>Hi Joel&#13;
&#13;
"extern" is a keyword that can be used for two completely different things&#13;
&#13;
1. you can use it to tell the compiler …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50492/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code-50492/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50487-wb19-project-init-code/read.awp">WB19 - Project Init Code</source><title>Re: WB19 - Project Init Code</title></item></channel></rss>
