Hi all

It seems a basic question, but I'm unable to get it to work.
I need to enable/disable a group of mixed controls in the Main Form, but 
instead of doing individually, I'd prefer to do so by iterating.

Following is the code I'm using and it gives an error "Wanted string, 
date or integer, got function instead"

What I'm doing wrong?

PUBLIC SUB btnQuick_Click()     'toggle button

     DIM hCtl AS Control

     IF btnQuick.Value = TRUE THEN
         FOR EACH hCtl IN FMain.Controls
             IF hCtl.Tag = "exclude" THEN hCtl.Enabled = FALSE
             'DEBUG hCtl.Tag
         NEXT
     ELSE
         FOR EACH hCtl IN FMain.Controls
             IF hCtl.Tag = "exclude" THEN hCtl.Enabled = TRUE
         NEXT
     ENDIF

END

Regards

Jesus

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to