Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » Ultra Light M-Business Anywhere プログラミング (旧式) » M-Business Anywhere の Ultra Light 開発

 

Ultra Light データベースへの接続

データベースのデータを操作するには、Ultra Light アプリケーションをデータベースに接続する必要があります。

接続を確立する最も簡単な方法は、次のとおりです。次の項では、この方法の応用について説明します。

var DatabaseMgr;
var Connection;
DatabaseMgr = CreateObject("iAnywhere.UltraLite.DatabaseManager.CustDB");
Connection = DatabaseMgr.openConnection("dbf=" + DatabaseMgr.directory + "\\mydb.udb");
 Connection オブジェクトの使用