[Gambas-user] How do I execute this istruction

francesco.difusco@libero.it francesco.difusco at ...69...
Mon Sep 13 16:31:31 CEST 2004


>
> > PUBLIC SUB Button1_Click()
> > DIM tablename AS String
> > DIM p2 AS Process
> > IF tabelle.Index<>-1 THEN
> > textbox1.text=tabelle.Current.text
> > tablename=tabelle.Current.text
> > EXEC ["mdb-schema", DbName, "-T", tablename] FOR READ AS p2
> > ELSE
> > textbox1.text="Nessun elemento selezionato"
> > EXEC ["mdb-schema", DBname] FOR READ AS p2
>
> > Object.Attach(p2, ME, "proc2")
> > ENDIF
> > end
> 
> > But when I execute the program and I select an item in the listbox, the program
> > is blocked. If I don't select an item in the list, teh program works correctly.
>
> You use only one attach command? This does mean you have at least the
> following subs declared:

I missed the second object.attach ... istruction. Now everything works fine !







More information about the User mailing list