Function GetNew() Foundation
Generates an object of the Get class.
This function is deprecated.
GetNew( [<nRow>], ;
[<nCol>], ;
[<bVarBlock>], ;
[<cVarName>] , ;
[<cPicture>] , ;
[<cColor>] ) --> oGet
The return value of GetNew() is a new Get object.
GetNew() is a compatibility function, which should no longer be used since Xbase++ makes a complete object model available. Instead of the function call GetNew(), the message :new() should be sent to the class object of the Get class. The same arguments are passed to the method :new() and the function GetNew().
More information can be found under the class Get. For more information on display formatting using <cPicture>, see the description of the command @...GET.
// The example shows three syntactic approaches to editing
// a variable using a Get object.
PROCEDURE Main
LOCAL oGet, cString := "Xbase++"
// command syntax
@ 10,20 GET cString PICTURE "!@" COLOR "N/BG,W+/B"
READ
// function syntax
oGet := GetNew( 10, 20, ;
{|x|IIf(x==NIL,cString,cString:=x)}, ;
"cString", ;
"@!", "N/BG,W+/B" )
oGet:display()
ReadModal( { oGet } )
// object oriented
oGet := Get():new( 10, 20, ; // syntax
{|x|IIf(x==NIL,cString,cString:=x)}, ;
"cString", ;
"@!", "N/BG,W+/B" )
oGet:display()
ReadModal( { oGet } )
RETURN
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.