Problem with TextBox from dfanning.com [message #40463] |
Wed, 11 August 2004 04:40 |
lloyd
Messages: 16 Registered: February 2003
|
Junior Member |
|
|
Hi all,
I'm using David Fanning's widget from his website. I have come across
a problem however. Here is my calling sequence:
IFCANCELLED: ; Label if box is cancelled
inputvalue = TextBox(Title="Please enter value:", Label=inputname,
Cancel=cancelled, value=string(inputvalue2))
IF (cancelled OR (inputvalue EQ "")) THEN begin
warning = DIALOG_MESSAGE("A value must be
entered",TITLE="Warning!")
stop
GOTO, IFCANCELLED
endif
The problem is that if I enter a null string or click the cancel
button I get the following error message back out:
"WIDGET_LABEL: String expression required in this contact: LABEL."
I don't understand this at all! Any help on this much appreciated.
Lloyd
PS I am an IDL newbie, have been given the task of converting an old
f60 code into IDL, am trying to get a nice user interface and
everything (any good guides?). Hopefully in a couple of years I'll be
able to answer questions rather than post lots :)
|
|
|