I want to know how to kick out of a function. This is my code..
function onButtonClicked()
{
//Connection
var db
var sqlID
var dbID
var tblID
sqlID = 0;
dbID = 0;
tblID = 0;
db = new DbConnection("mssql://USATL02PRSQ70" + textbox.getText() + ":1434/AS_PROJECTS");
//if (db.isConnected()) alert("Connection succeeded");
//else alert("Connection failed");
if (ServerName.getText().length > 1)
{
var result1 = db.execute("select SQLServerID from SQLServer WHERE SQLServer = '" + ServerName.getText() + "'");
// get the first row
result1.next();
// get the field
var rowcount = result1.rowcount;
//if (result1.hasNext()) sqlID = result1.SQLServerID;
if (rowcount < 1)
{
sqlID = result1.SQLServerID;
}
else
{
....here I would want to kick out of the button function.....
}
Kirix Support Forums
kick out of a function
2 posts
• Page 1 of 1
Re: kick out of a function
Aaron Williams
Kirix Support Team
Kirix Support Team
-
Aaron - Kirix Support Team
- Posts: 120
- Joined: Fri Dec 16, 2005 3:01 pm
2 posts
· Page 1 of 1
Return to Strata Help & Feedback