TrueUpdate 3.9

TrueUpdate.GetUpdateServerList

TrueUpdate.GetUpdateServerList

This is the first topic This is the last topic  

TrueUpdate.GetUpdateServerList

This is the first topic This is the last topic  

OverviewExamples

table TrueUpdate.GetUpdateServerList (

)

Example 1

tServers = TrueUpdate.GetUpdateServerList();

Gets a list of the TrueUpdate Servers and stores it in the table 'tServers'.

Example 2

tUpdateServers = TrueUpdate.GetUpdateServerList();

nMaxServers = Table.Count(tUpdateServers);

 

bValidServer = false;

nServerNo = 1;

 

while (not bValidServer) do

   bValidServer = TrueUpdate.GetServerFile(tUpdateServers[nServerNo], true, nil)

   if (not bValidServer) then

       nServerNo = nServerNo + 1;

   end

   if (nServerNo > nMaxServers) then

       Dialog.Message("Error", "All attempts at downloading a server configuration file have failed.  Update will now terminate");

       Application.Exit();

   end

end

Gets a list of all available TrueUpdate Servers and attempts to get the server configuration files from each one until a valid server is found.  If no server can be connected to, an error is displayed, and the update exits.

See also: Related Actions


Learn More: Indigo Rose Software - TrueUpdate - Buy Now - Contact Us