on oldest clipper function I have
If ValType(uVar)<>"L"
oEdit:Value:=uVar
Endif
and
If lOk
If ValType(uVar)<>"L"
uVar:=oEdit:Value
Else
uVar:=oEdit:lChecked
Endif
How I can make on fwh ?
oEdit:Value:=uVar
oEdit:VarPut(uVar)
#include 'fivewin.ch'
//-------------------------------------------------------//
Function Main()
Local oDlg,oGet,oBtn,cTest:="Hello",lTest:=.F.
DEFINE DIALOG oDlg TITLE "Test"
@1,1 GET oGet VAR cTest OF oDlg
@3,3 BUTTON oBtn PROMPT "Test" OF oDlg ACTION Test(oGet,lTest)
ACTIVATE DIALOG oDlg
return nil
//-------------------------------------------------------//
Function Test(oGet,lTest)
if ValType(lTest) == "L"
MsgInfo("Trying to assign Lgical Value to Get")
oGet:VarPut(lTest)
oGet:Refresh()
Endif
if ValType(oGet:Value) == "L"
MsgInfo("Now Get var is having a Logical Value")
oGet:VarPut(lTest)
oGet:Refresh()
Else
MsgInfo("Value in GET is not of a logical type")
Endif
MsgInfo("Everything OK")
Return NIL
Silvio wrote:Error description: Error BASE/1004 Class: 'NIL' has no exported method: VARPUT
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 89 guests