i saw in some Code Syntax like this
Code: Select all | Expand
<||
local oRect := oDlg: GetCliRect ( )
oBar: nWidth := oRect: nWidth
oLbx: nWidth := oRect: nWidth - 210
RETURN NIL
>
in above Sample you need to pass oLbx as Parameter but how using that Syntax
![Question :?:](./images/smilies/icon_question.gif)
---
here a Sample how i pass Parameter to Codeblock
Code: Select all | Expand
#include "FiveWin.ch"
PROCEDURE MAIN
LOCAL a := 1
LOCAL b := "a"
LOCAL cBlock, bBlock
// you can per-build Codeblock as String
cBlock := "{|a,b| DoTest(a,b)}"
bBlock := &(cBlock)
Eval(bBlock,a,b)
return
Code: Select all | Expand
FUNCTION DoTest(a,b)
? a, VALTYPE(a)
? b, VALTYPE(b)
RETURN 0