Board index » delphi » Converting Type - Real(Pascal) to Visual Basic
Tomek
![]() Delphi Developer |
Tue, 03 Aug 2004 21:02:51 GMT
|
Tomek
![]() Delphi Developer |
Tue, 03 Aug 2004 21:02:51 GMT
Converting Type - Real(Pascal) to Visual Basic
I have data base (btrieve), where files where created in Pascal and uses
Real Type (digits 6 decimal-2) and I need to find a way to read these data by Visual Basic For example: Number (33,33) is representing as ( (134) (31) (133) (235) (81) (5)) or (?-?Q ) How from byte representation find the number 33.33 Thanks |
Markus Hum
![]() Delphi Developer |
Wed, 04 Aug 2004 01:02:31 GMT
Re:Converting Type - Real(Pascal) to Visual BasicQuoteTomek wrote: EXTENDED or DOUBLE are IEEE compliant types...Real is some proprietary Borland stuff... Greetings Markus |
Dr John Stockto
![]() Delphi Developer |
Wed, 04 Aug 2004 05:10:39 GMT
Re:Converting Type - Real(Pascal) to Visual BasicJRS: In article <3C6D314A.62666...@yahoo.com>, seen in news:comp.lang.pascal.ansi-iso, CBFalconer <cbfalco...@yahoo.com> wrote at Fri, 15 Feb 2002 16:32:39 :- Quote>Tomek wrote: In <URL:http://www.merlyn.demon.co.uk/programs/>, sixbytes.pas is a The routine SixToExt takes a "real" argument, and casts it to an array TP code is easy enough to read; probably the OP will be able to OP: please do not multi-post. Cross-posted c.l.p.a-i, c.l.p.b; FU c.l.p.b -- |
R. A. Larse
![]() Delphi Developer |
Wed, 04 Aug 2004 08:32:35 GMT
Re:Converting Type - Real(Pascal) to Visual BasicQuote"Tomek" <xx20...@wp.pl> wrote: width in bits and the value v is calculated as: if 0 < e <= 255 then v = (-1)^s * 2^(e-129) * (1.f) where '^' means power. This comes directly from the "TP6 Programmer's Guide". Regards, Ren |
Valentine Mehlin
![]() Delphi Developer |
Wed, 04 Aug 2004 13:32:27 GMT
Re:Converting Type - Real(Pascal) to Visual BasicI am gradually migrating my apps from TP7 to VB5. The simplest way I have found to move numeric values from TP to VB is to simply store the data in a text file. VB can easily read the file and you can write a routine to convert the text representation to whatever data type you need. QuoteTomek wrote: Val Mehling va...@earthlink.net Web Pages XRL (Extreme Racing League) Pics http://odin.prohosting.com/valmeh/ |
Scott Moor
![]() Delphi Developer |
Wed, 04 Aug 2004 15:44:34 GMT
Re:Converting Type - Real(Pascal) to Visual BasicQuoteDr John Stockton wrote: while since I did 32 bit float, but 6-8 digits might be about right. I would start by dumping out zero (a floating point zero), and seeing what that matches. - Hide quoted text - - Show quoted text - Quote
|
Dr John Stockto
![]() Delphi Developer |
Thu, 05 Aug 2004 03:07:15 GMT
Re:Converting Type - Real(Pascal) to Visual BasicJRS: In article <3C6E0DE2.111DB...@moorecad.com>, seen in news:comp.lang.pascal.borland, Scott Moore <sam...@moorecad.com> wrote at Fri, 15 Feb 2002 23:44:34 :- Quote>I would start by dumping out zero (a floating point zero), and seeing Borland's Pascals & Delphi; I don't know about Kylix. Some patterns with some bits non-zero may also be interpreted as zero. In announcing your new WWW address, you also gave the old one. Few are -- |
1. Converting Type - Real(Pascal) to Visual Basic
2. Converting Visual Basic projects to Delphi.
3. converting delphi to Visual Basic...
4. Converting Visual Basic projects to Delphi.
5. Convert Visual Basic to Delphi
6. Help converting this Visual Basic code to Delphi...Please
7. Delphi <->Visual Basic (Types,DLL)