How can I update a textbox in a slide object in the middle of a loop in E-Prime?
July 12, 2009 4:34 PM   Subscribe

Computer Coding: I'm trying to write an experiment in E-Prime that uses a Visual Analog Scale to allow subjects to bid on items. Basically, this means they move a slider with their mouse over a bar, and the position on the bar represents how much they are willing to bid. The thing is, they need to know what value the slider currently represents before they can actually bid, and I'm having problems getting the text to update with the cursor position. Now, if any of you out there are E-Prime gurus I could really use your help for this bit. I need to figure out how to update a textbox in a 'slide' object in the middle of a loop.

I've also posted this question on the E-Prime forum and was basically met with crickets. I'm a decent (not great at all) programmer in some other languages so I've been picking this stuff up pretty fast, but I'm under a pretty tight deadline right now.

There's an example of the code available for download on the forum post, but I think you have to sign up to get it. If you use E-Prime and aren't on the forum, feel free to MeMail me and I'll send you a copy of the code.
posted by scrutiny to Computers & Internet (2 answers total)
 
This will be extremely vague, as it's been quite some time since I've touched eprime, but I believe you can modify the text of a given object via the inline visual basic hook. I think it's as simple as adding a conditional based on the input of the previous slide, then setting TEXTBOX_SLIDE_NAME.TEXT_OBJECT_NAME.text = what you want now.

Sorry, I'd be more helpful, but I don't seem to have access to any of the manuals any more, so I can't be more specific.
posted by Kikujiro's Summer at 5:16 AM on July 13, 2009


Response by poster: I ended up copying the bit in the initialization part of the slide object that referenced the textbox I wanted and it seems to work.

"Set VASSlide_SlideText = CSlideText(VASSlide.States.Item("Default").Objects(1))
VASSlide_SlideText.Text = "$" &_
c.GetAttrib("Rating")"

Thanks for the help everyone!
posted by scrutiny at 6:59 AM on July 13, 2009


« Older Quiero un diccionario de EspaƱol en mi ... que is...   |   Footwear tips for hiking Mt. Whitney Newer »
This thread is closed to new comments.