"double" variable truncated in text object

Valerio Biscione valerio.biscione at gmail.com
Tue Mar 19 16:50:22 UTC 2013


Thank you, that totally helped!

On Tuesday, 19 March 2013 15:48:39 UTC, McFarlane, David wrote:
>
> First of all, why do you set the text for your SlideText directly, 
> rather than using an attribute reference (see my comments at 
> https://groups.google.com/d/topic/e-prime/RBwU6WDdlG8 )?  Instead of 
> your code, do something more like 
>
>      c.SetAttrib "SubjectScore", subjectScore 
>
> and then use [SubjectScore] in your SlideText. 
>
> Now, on your your question -- Look at the "Format, Format$" topic in 
> the E-Basic Help facility. 
>
> ----- 
> David McFarlane 
> E-Prime training 
> online:  http://psychology.msu.edu/Workshops_Courses/eprime.aspx 
> Twitter:  @EPrimeMaster (https://twitter.com/EPrimeMaster) 
>
> /---- 
> Stock reminder:  1) I do not work for PST.  2) PST's trained staff 
> take any and all questions at 
> http://support.pstnet.com/e%2Dprime/support/login.asp , and they 
> strive to respond to all requests in 24-48 hours, so make full use of 
> it.  3) In addition, PST offers several instructional videos on their 
> YouTube channel (http://www.youtube.com/user/PSTNET ).  4) If you do 
> get an answer from PST staff, please extend the courtesy of posting 
> their reply back here for the sake of others. 
> \---- 
>
>
> At 3/19/2013 11:30 AM Tuesday, Valerio Biscione wrote: 
> >Hi. In my software I show, in a text object inside a slide object, 
> >the score of the subject. The score is a Double variable and can 
> >assume value like 1.2 or 5.0. When I "print" the score variable I 
> >would like to show all the value until the first decimal number, but 
> >it seems that eprime actually cut the number if it sees it like an 
> >integer. For example 5.0 is showed like 5, whereas 1.2 is correctly 
> >showed like 1.2 
> > 
> >This is the code that I use in an inline script just before the slide 
> object: 
> > 
> >Set theText = 
> CSlideText(Slide6.States(Slide6.ActiveState).Objects("Text1")) 
> > 
> >theText.text=subjectScore 
> > 
> > 
> >How can I solve this problem? 
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/d8Z-pyHs_LsJ.
For more options, visit https://groups.google.com/groups/opt_out.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20130319/b8cd25ae/attachment.htm>


More information about the Eprime mailing list