hi,
i saw in some Code Syntax like this
where can i read "more" about this Syntax
in above Sample you need to pass oLbx as Parameter but how using that Syntax :?:
---
here a Sample how i pass Parameter to Codeblock
as you can see i include Parameter between "|" (Pipe) Sign of Codeblock and pass them at EVAL()
i saw in some Code Syntax like this
<||
聽 聽 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 :?:
---
here a Sample how i pass Parameter to Codeblock
#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)
returnFUNCTION DoTest(a,b)
? a, VALTYPE(a)
? b, VALTYPE(b)
RETURN 0greeting,
Jimmy
Jimmy