Date: Wed, 27 Feb 2008 16:01:11 -0500
Reply-To: Dave Scocca <dave@SCOCCA.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Dave Scocca <dave@SCOCCA.ORG>
Subject: Re: How to declare a textbox as an Object in SCL ?
In-Reply-To: <200802272050.m1RGLRFL028306@malibu.cc.uga.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
--On 2/27/2008 3:50 PM -0500 SUBSCRIBE SAS-L Tom Smith wrote:
> When I compile the SCL code of my frame, an error message says " The
> variable txt_CodePath has not been declared as an object." where CodePath
> is a text box I have on the frame.
is the variable named "txt_CodePath" or is it named "CodePath"? Not only
should you should not need to declare your frame objects in the SCL code,
but if you do so you will get a compile failure with a message like:
ERROR: [Line ##] Screen variable [object name] was redefined with a
LENGTH/DECLARE statement
> I googled and found a way to declare a vaiable as an object like this:
>
> dcl object dataTableID,
> sashelp.classes.colorList_c.class
> colorID;
>
> where colorID is the variable to be defined. It uses a four-level name of
> the class to define its type.
>
> Then what is the four-level name of a text box ?
The four level name is shown as the four-level class name on the class
help. You can get if you right-click on the component in the "Components"
window, or on the object in the left-hand pane of the "Properties" window,
and choose "Help on Class".
(You can also go directly to the page for the class in the SAS/AF Component
Reference, which is part of the online SAS help.)
I'm not sure exactly which class you mean by "text box", though--a text
entry control is SASHelp.Classes.TextEntry_c.class, and a text label
control is SASHelp.Classes.TextLabel_c.class.
Dave Scocca