Defining labels, checkboxes and so on by macro substitution
Posted: Mon Sep 26, 2016 6:38 pm
Is it possible to define labels and checkboxes with macrosubstitution. Sometimes I want to define several labels images and chackboxes in a FOR NEXT loop.
Is this possible?
- Code: Select all Expand view
- LOCAL nFoto := 1
FOR r = 1 TO 3
FOR k = 1 TO 5
cImage := aFotoNaam[nFoto]
oImgName := 'oImg' + STR(nFoto)
IF FILE(cImage)
@ nRow, nColumn IMAGE &oImgName FILENAME cImage OF oFld:aControls[ 3 ] SIZE 110, 110
&oImgName:bLButtonDown = { || RK_FotoGroot( cImageGroot ) }
ENDIF
nColumn := nColumn + 120
nFoto++
NEXT
nColumn := 10
nRow := nRow - 120
NEXT
Is this possible?