PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] gpwEnumControl on Internal Window
[WD20] gpwEnumControl on Internal Window
Iniciado por guest, 20,nov. 2015 16:58 - 1 respuesta
Publicado el 20,noviembre 2015 - 16:58
Has anyone ever gotten gpwEnumControl() to work on an internal window? It keeps returning an empty string. I have a lot of controls in the window. I also tried adding all the controls to a super control and passing the super control as the first parameter of gpwEnumControl().

nSubscript is int=1 // Get first control sControlInfo is string UNICODE=gpwEnumControl(SC_Options,nSubscript) WHILE sControlInfo<>"" sCtrlType is string = ExtractString(sControlInfo,4,TAB) sCtrlName is string = ExtractString(sControlInfo,1,TAB) // If CheckBox and Checked then Gray IF sCtrlType = "Check Box" THEN IF {sCtrlName,indControl} = 1 THEN {sCtrlName,indControl}..Grayed = True END END // Next control nSubscript++ sControlInfo=gpwEnumControl(MyWindow..Name,nSubscript) END
Publicado el 20,noviembre 2015 - 18:31
Oops. Dumb mistake. Passed in the wrong window name on the second call to gpwEnumControl.