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 16:49:31 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcgzcPpfOL/Vgp9kEdyylgAX8sM2Tg==
Thread-topic: Format, Double, Str, CDbl and data exchange -> another movieplayer bug
>>     MoviePlayer1.CurrentPosition =
>>                            Val(LB_Captions.cell
>> (LB_Captions.SelectedRow,0))
> 
> This is incorrect.  To interpret human-readable numbers, you must use
> CDbl.  Val is only useful for machine-formatted numbers (which you'd
> get with Str rather than CStr or Format).
> 
>>     ST_Current_Position.Text = Format(MoviePlayer1.Position, "0.000")
> 
> This would be fine if the previous step were correct.

Thanks Joe - working now (and I'm once more left with egg on my face)

Best Regards

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>