realbasic-nug
[Top] [All Lists]

Re: Format, Double, Str, CDbl and data exchange -> another movieplayer b

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Format, Double, Str, CDbl and data exchange -> another movieplayer bug
From: Markus Winter <markus_winter at blueyonder dot co dot uk>
Date: Fri, 30 Nov 2007 09:27:18 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcgzMzN5cjOaHJ8mEdyylgAX8sM2Tg==
Thread-topic: Format, Double, Str, CDbl and data exchange -> another movieplayer bug
>> I¹m saving a tab delimited list UTF-8 encoded with double values
>> (representing movie positions) and text like this
>> 
>> 1.345   text1
>> 3.534   text 2
> 
> What's the point of this text file?  Is it to be read by humans, or
> only by computers?

Actually both - and I'm not expressing myself well.

I have a UK Mac and a German PC system for testing.

I capture the movieposition in a listbox with

  LB_Captions.addrow  Format(MoviePlayer1.Position, "0.000")
  
which sets it to 1.345 on a British system

and to 1,345 on a German system


Now comes the interesting part:

On clicking a row I set the movieplayer position to the value in the row and
display the position in a statictext with

    MoviePlayer1.CurrentPosition =
                           Val(LB_Captions.cell(LB_Captions.SelectedRow,0))
    
    ST_Current_Position.Text = Format(MoviePlayer1.Position, "0.000")
 
Now I get different results on a british Mac and a german PC

On the british Mac it displays 1.345 in the StaticText

On the german PC it displays 1


Testing it further I found that it's

    MoviePlayer1.CurrentPosition =
                           Val(LB_Captions.cell(LB_Captions.SelectedRow,0))

which is actually the offending line

Same effect if I store the position in a statictext instead of a listbox:

   MoviePlayer1.Position = Val(StaticText.text )
  
also just gives 1 instead of 1.345

Another bug in MoviePlayer on Windows - you can capture the position
accurately but you can set the position only with an accuracy of 1 sec on
Windows.

http://www.realsoftware.com/feedback/viewreport.php?reportid=lajsaivf

Could someone try it on a British/US Windows system please?
 
Markus





_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>