Date: Fri, 21 Dec 2001 08:42:29 -0500
Reply-To: Simon Pickles <simon.pickles@BARCAP.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Simon Pickles <simon.pickles@BARCAP.COM>
Subject: Re: Help with _GET_TEXT_ method in CALL NOTIFY please!
Ad
Correction To Code
With V8 the Text Extry Control '_gettext' method returns an error because
the object has no associated Character Value. As far as I know you have to
get the 'Text' attribute using dot notation as below. Confusingly this is
the attrbute set by the '_settext' method but not the attribute got by
the '_gettext' method. It's no doubt to do with the fact that '_gettext' is
inherited from the widget class, and SAS Inst AF developers may or may not
have a justification for this behaviour.
intext:
length cust $15;
cust=intext.text;
put cust=;
return;
Regards
Simon
On Wed, 19 Dec 2001 04:26:07 -0500, Gerhard Hellriegel <ghellrieg@T-
ONLINE.DE> wrote:
>On Wed, 19 Dec 2001 12:44:57 +0600, adil <adil@MATH.NSC.RU> wrote:
>
>>Hi, connoisseurs of SAS/AF!
>>
>>Help me please!
>>
>>In one my frame there is a Text Entry Control widget for $15 entry named
>>intext. In the corresponding frame SCL there is a section:
>>
>>intext:
>> length cust $15;
>> call notify('intext','_GET_TEXT_',cust);
>>return;
>>
>>Why CALL NOTIFY with _GET_TEXT_ don't work? In the log window, after
>>entering any text in Text Entry Control field and pressing Enter, I'm
>>getting the next message:
>>--------------------------------------------------------------------------
-
>-----
>>
>>ERROR: Invalid object type for object intext.
>>Unable to perform requested function
>>Arguments passed to NOTIFY:
>> 1 (Character Literal) = 'intext'
>> 2 (Character Literal) = '_GET_TEXT_'
>>Parameters passed to NOTIFY ENTRY:
>> 1 cust = ''
>>Program returning prematurely at line 9
>>AF Program: TRANSP.FRAMES.TRANSP_NEW.FRAME
>>--------------------------------------------------------------------------
-
>-----
>>
>>But method _SET_TEXT_ instead of _GET_TEXT_ in CALL NOTIFY (or SEND)
>>works correctly... Why?
>>
>>Thank you!
>>
>>Sincerely, Ad
>
>
>Hi Ad,
>what about the variable CUST? Did you declare it with a LENGTH statement?
>Like:
>
>length cust $15;
>int:
>...
>return;
>intext:
>....
>return;
|