Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Oberon > Dialog.Update(t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 403 of 481
Post > Topic >>

Dialog.Update(table) does not work

by schrei <schrei@[EMAIL PROTECTED] > May 22, 2007 at 01:05 PM

Hello,

I made a simple sql database program.
On the form i inserted a SqlControls.Table object, which i linked to
a 'table:SqlDB.Table' Object.

If i do a test, the result of a sql select statment, has no effect to 
the SqlControl object on the form. But if i delete and insert the 
SqlControl on the form again, the SqlControl works.

Do i make something wrong, or is that a bug?

Here the source code:

MODULE Test;
IM****T Dialog, Views, TextModels, TextControllers, SqlDB, SqlControls;
	
VAR statement*: ARRAY 1024 OF CHAR;
     table*: SqlDB.Table;	(* anchor for database *)

PROCEDURE Execute*;
VAR res: INTEGER; db: SqlDB.Database;
     id, pwd, database, driver: ARRAY 32 OF CHAR;
BEGIN
   id := ""; password := "";
   database := "Test Database";
   driver := SqlOdbc3";
   IF table = NIL THEN
     SqlDB.debug:=TRUE;
SqlDB.OpenDatabase(driver,id,pwd,database,SqlDB.async,SqlDB.showErrors,db,res);
     table := db.NewTable();
   END;
   table.Exec(statement);
   Dialog.Update(table);			
END Execute;
	
BEGIN
END Test.

Yours sincerely
Helmut
 




 2 Posts in Topic:
Dialog.Update(table) does not work
schrei <schrei@[EMAIL   2007-05-22 13:05:10 
Re: Dialog.Update(table) does not work
"Josef Templ" &  2007-05-23 09:14:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:43:21 CDT 2008.