I have used following code for normal GET. I work fine but when I use the same with MEMO field. It is not working and show this error.
- Code: Select all Expand view RUN
*--------------------------------*
Procedure MakeGet(oGet,aMField,Nr,aStruct)
// aMField := {151,'TBL->TBL_MEMO'}
// aStruct := {{'TBL_MEMO','M',10,0}}
if aStruct[ascan( aStruct , {|x| x[1]=right(aMField[Nr,2],len(aMField[Nr,2])-5) } )][2] = 'M'
REDEFINE GET oGet[Nr] VAR &(MEMVAR->aMField[Nr,2]) ;
MEMO ;
ID MEMVAR->aMField[Nr,1]
else
REDEFINE GET oGet[Nr] VAR &(MEMVAR->aMField[Nr,2]) ;
ID MEMVAR->aMField[Nr,1]
end
return
- Code: Select all Expand view RUN
Error description: Error Objects/8 No Object Msg.: UNDEFINED:DEFCONTROL
Stack Calls
===========
Called from LOCKERRHAN(0)
Called from (b)INITHANDL$(0)
Called from DEFCONTROL(0)
Called from TMULTIGET:REDEFINE(0)
Called from MAKEGET(1216)
.....
.DLL file
- Code: Select all Expand view RUN
EDITTEXT 151, 342, 150, 59, 30, ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_TABSTOP
If I remark MEMO line. I show ok but I cannot try multiline text as usaul.
Regards,
Dutch