08.05.2013 Views

VisualAge RPG Parts Reference - IBM

VisualAge RPG Parts Reference - IBM

VisualAge RPG Parts Reference - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ejemplo de formato libre<br />

Conmutar el estado de Visible de un componente:<br />

*...1....+....2....+....3....+....4....+....5....+....6....+....7....+....8<br />

CSRN01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq----<br />

*<br />

C<br />

*<br />

EVAL isVisible = %getatr('win01': 'EF1': 'Visible')<br />

C isVisible IFEQ 1<br />

C<br />

*<br />

EVAL %setatr('win01': 'EF1': 'Visible') = 0<br />

C ELSE<br />

C EVAL %setatr('win01': 'EF1': 'Visible') = 1<br />

C<br />

*<br />

ENDIF<br />

Ejemplo de formato fijo<br />

*...1....+....2....+....3....+....4....+....5....+....6....+....7....+....8<br />

CSRN01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq----<br />

*<br />

C 'EF1' GETATR 'VISIBLE' IsVisible 1 0<br />

C IsVisible IFEQ 1<br />

C<br />

*<br />

'EF1' SETATR 0 'VISIBLE'<br />

C ELSE<br />

C 'EF1' SETATR 1 'VISIBLE'<br />

C<br />

*<br />

ENDIF<br />

446 <strong>VisualAge</strong> <strong>RPG</strong> Manual de consulta de componentes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!