[gtkada] simple gtk_editable question

Clark, G L g.l.clark at lmco.com
Wed Jan 9 00:50:36 CET 2002


Hello All,

  I'm new to Ada in general, so this might be more of an Ada question rather
than a GtkAda question but here goes.

  I'm getting a Constraint error when trying to read the characters from an
editable field into a bounded string.

------------------------------
subtype NAME_TYPE is string(1..40);
...
--(Name is of type NAME_TYPE)
FORM_DATA.NAME := get_chars(Create_Database_Dialog.New_Database_Entry);
-------------------------------

  It probably has something to do with bounded vs unbounded strings but I
don't know enough Ada to resolve my problem.  Any help would be
appreciated... code examples are extremely appreciated.

  Thanks,
	George Clark




More information about the gtkada mailing list