LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 19 Nov 1999 08:49:54 -0500
Reply-To:     "Tift, Brian" <bet5@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Tift, Brian" <bet5@CDC.GOV>
Subject:      Re: Returning current column name from DataForm object in SAS/AF
Content-Type: text/plain; charset="iso-8859-1"

Dustin, To get the name of the current column in a data form you can try this:

INIT: CALL SEND ( _self_ , '_GET_WIDGET_', 'ENTRY', viewer); /* Get the Object Id of the Dataform Object (In this example it is named ENTRY) and assign the ID to variable viewer */ return;

MAIN: ilist=makelist(); /* Creates an empty list */

CALL SEND (viewer, '_GET_CURRENT_WIDGET_INFO_', ilist); /* This method will get information from the current list and place the information in a list of named item (in this case ILIST);

cur_col=getnitemc(ilist,'column_name'); /* Then you get the named item 'column_name' from the list and assign it to whatever variable you want */

You can then use the variable CUR_COL to determine where you want the cursor to go.

Hope this helps,

Brian

-----Original Message----- From: EASTWOD [mailto:EASTWOD@WESTAT.COM] Sent: Friday, November 19, 1999 7:40 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Returning current column name from DataForm object in SAS/AF

Does anyone know how you can return the name of the column that the cursor is in from a Data Form Object? What I am doing is finding out what the current position of the cursor is, so when the Enter key is pressed it will go to the field I want it to next. Thank you for any help.

Dustin Eastwood Programmer Analyst Westat Rockville, MD www.westat.com


Back to: Top of message | Previous page | Main SAS-L page