comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Text Widget Confession
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Text Widget Confession [message #26624] Fri, 21 September 2001 10:10 Go to next message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:
>
> Check the number of characters in the text widget:
>
> numchar = Widget_Info(textID, /Text_Number)
>
> I get 18. Wait a minute.

I agree: Wait a minute... I get 15...
I am exploring. I will be back.
Re: Text Widget Confession [message #26772 is a reply to message #26624] Fri, 21 September 2001 10:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:

> I agree: Wait a minute... I get 15...
> I am exploring. I will be back.

Oh, right. Forgot my thumbs. :-(

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Text Widget Confession [message #26773 is a reply to message #26624] Fri, 21 September 2001 10:24 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Pavel A. Romashkin" <pavel.romashkin@noaa.gov> wrote in message
news:3BAB746B.D678800A@noaa.gov...
> David Fanning wrote:
>>
>> Check the number of characters in the text widget:
>>
>> numchar = Widget_Info(textID, /Text_Number)
>>
>> I get 18. Wait a minute.
>
> I agree: Wait a minute... I get 15...
> I am exploring. I will be back.

Quick thought: if you count CR and LF after each line, you do get 18 and the
byte positions as reported. Some things still look strange, though...

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Spurious characters appear at (semi-)random intervals
Next Topic: Invalid Object Reference!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 19:06:09 PDT 2025

Total time taken to generate the page: 0.63898 seconds