i saw in some Code Syntax like this
- Code: Select all Expand view
- <||
local oRect := oDlg: GetCliRect ( )
oBar: nWidth := oRect: nWidth
oLbx: nWidth := oRect: nWidth - 210
RETURN NIL
>
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
- Code: Select all Expand view
- #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 view
- FUNCTION DoTest(a,b)
? a, VALTYPE(a)
? b, VALTYPE(b)
RETURN 0
as you can see i include Parameter between "|" (Pipe) Sign of Codeblock and pass them at EVAL()