Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Hi, I am trying to put some checkboxes into an existing idl gui, and every time i click on the checkbox this error appears. % Expression must be a structure in this context: CMD. This cmd variable is associated to an event handler, which is getting the structure of the file where the gui is defined, and storing it for use. I just want the checkbox to check or uncheck, so as to use it later on for determining user defined options for the program. Thank you for any help you might give me.
On Friday, June 21, 2013 3:36:15 PM UTC-4, Martín Garay-MacLean wrote: > Hi, I am trying to put some checkboxes into an existing idl gui, and every time i click on the checkbox this error appears. > > > > % Expression must be a structure in this context: CMD. > > > > This cmd variable is associated to an event handler, which is getting the structure of the file where the gui is defined, and storing it for use. I just want the checkbox to check or uncheck, so as to use it later on for determining user defined options for the program. > > > > Thank you for any help you might give me. I forgot to post the procedure where the error is happening. Widget_Control, event.id, Get_UValue=cmd Call_Method, cmd.method, cmd.object, event These are the only lines of code it has.
Martín Garay-MacLean writes: > I forgot to post the procedure where the error is happening. > > Widget_Control, event.id, Get_UValue=cmd > Call_Method, cmd.method, cmd.object, event > > These are the only lines of code it has. Well, I would put "Help, cmd" just in front of your Call_Method call and see just want cmd is, if it is not a structure. Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")