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

Home » Public Forums » archive » strAnswer = ReadUserInput()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
strAnswer = ReadUserInput() [message #35520] Wed, 25 June 2003 02:12 Go to previous message
Gert Van de Wouwer is currently offline  Gert Van de Wouwer
Messages: 21
Registered: January 2002
Junior Member
Hi,


I would like to have a function:

strAnswer = ReadUserInput()

readUserInput would then create a (modal) base, have a text-field where the
user types his tekst. When the base is
closed, the contents of the textfield are returnedn in strAnswer.


I've come up with this:

strTemp=''
ptr1 = ptr_new(strTemp)
ptr2 = ptr1
TextFieldBase, ptr1, group_leader=... ;this guy modifies *ptr1
...
at this point, ptr1 seems to be destroyed (by who, why?), but p2 points to
whatever is been filled in in textfieldbase.


It seems to work, but are there any pitfalls here? Is there any better way
to do this?
thanks for any input,

Gert
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: MORPH_XYZ and values keyword
Next Topic: resolve_routine and the IDL search path

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

Current Time: Wed Oct 08 19:37:47 PDT 2025

Total time taken to generate the page: 0.00434 seconds