Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!umd5!uflorida!gatech!bloom-beacon!ardent.UUCP!mlp From: mlp@ardent.UUCP (Mark Patrick) Newsgroups: comp.windows.x Subject: Problems with text widget Message-ID: <8806061437.AA18102@gr.ardent.com> Date: 6 Jun 88 14:37:27 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 14 I am trying to use XtGetValues to get the current length of a string in a text widget. I am using the following code fragment: n=0; XtSetArg(args[n], XtNlength, &length); n++; XtGetValues(w, args, n); printf("length is %d\n", length); If I set the variable `length' to -1 before this fragment the printf statement allways prints -1. What am I doing wrong? Mark Patrick Ardent Computer uunet!ardent!mlp