Return the initial Value of a toggle box?

dayv2005

Member
I was wondering how to return the initial value of a toggle box in code.

I was trying something like this. But i seem to be using the wrong attribute for a toggle box.

Code:
    DEFINE VARIABLE ch-T AS WIDGET-HANDLE  NO-UNDO.
    
    ASSIGN ch-T = t1:HANDLE.

    MESSAGE ch-T:INITIAL
        VIEW-AS ALERT-BOX INFO BUTTONS OK.
 

Osborne

Active Member
Dayv, I don't know if any help but for something like this I use the CHECKED value:

MESSAGE ch-T:CHECKED VIEW-AS ALERT-BOX INFO BUTTONS OK.
 

dayv2005

Member
Yeah we just assigned a variable and then checked against it. I figured there was an easy way to do this other than using another variable. I was wrong but thanks for the advice i ended up using that to check the value. Thanks.
 

lord_icon

Member
If you require to access an object property.
Simply follow the progress standard.
ObjectName:Attribute
eg. fillinInBox:SCREEN-VALUE
 
Top