Hi list,
I'm trying to refer to come couples Label/CheckBox that have the same suffix
(lbl_ONE & ckb_ONE) to enable/disable couple in one shot.
But after building my strings that are orders, GB tell me its not an object:
PUBLIC SUB lblckb_on_off(which AS String, on AS Boolean)
DIM lbl AS String
DIM ckb AS String
lbl = "lbl_" & which & ".Enabled = "
ckb = "ckb_" & which & ".Enabled = "
IF onoff THEN ' ON
lbl &= "TRUE"
ckb &= "TRUE"
(SOMETHING TO "EXEC" THE STRING)lbl (or may be: (SOMETHING)lbl = TRUE)
(SOMETHING TO "EXEC" THE STRING)ckb
ENDIF
END
Is there a way to do that?
--
tear leather:
To become excited, as in the sentence "Robin Hood tore
his leather jerkin' off."
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user