Click here to Skip to main content
15,915,873 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to open HTML file? Pin
Dave Kreskowiak17-Apr-07 3:09
mveDave Kreskowiak17-Apr-07 3:09 
GeneralRe: How to open HTML file? Pin
Christian Graus17-Apr-07 10:25
protectorChristian Graus17-Apr-07 10:25 
QuestionText box versus Combo box question Pin
vb200716-Apr-07 15:50
vb200716-Apr-07 15:50 
AnswerRe: Text box versus Combo box question Pin
Code_Doctor16-Apr-07 16:06
Code_Doctor16-Apr-07 16:06 
GeneralRe: Text box versus Combo box question Pin
vb200716-Apr-07 18:26
vb200716-Apr-07 18:26 
AnswerRe: Text box versus Combo box question Pin
klaydze17-Apr-07 22:11
klaydze17-Apr-07 22:11 
Questioncreate an xml file from treeview control Pin
diees16-Apr-07 14:01
diees16-Apr-07 14:01 
QuestionMapping to QBasic double precision datatype Pin
G-316-Apr-07 11:24
G-316-Apr-07 11:24 
I'm trying to read a sequential/random file written by a QBasic program, and one of the fields in the file is defined as 'Double Precision'. The field appears to be 8 bytes in length, but does not map appropriately to VB.Net 2005's Double or Long datatypes. After executing a FileGet, the double precision variable, (OrderAmount), is always filled with the wrong number.

I'm reading the record using the following logic:

Private Structure myRecordStructure
<vbfixedstring(10)> Dim FirstName As String
<vbfixedstring(15)> Dim LastName As String
<vbfixedstring(15)> Dim StreetAddress As String
<vbfixedstring(6)> Dim OrderDate As String 'MMDDYY
Dim DaysDue As Short
Dim OrderAmount As Double
End Structure
Private myRecord As myRecordStructure
mintFileNumber = FreeFile()
mstrFileName = "c:\control1.f"
FileOpen(mintFileNumber, mstrFileName, OpenMode.Random, _
OpenAccess.Read, OpenShare.Shared, Len(myRecord)
FileGet(mintFileNumber, myRecord)

Any help towards converting the QBasic double precision data to values that can be viewed from within VB.Net 2005 will be greatly appreciated.

Thanks

G-3

QuestionDatagrid selection sync with fields. Pin
T-Go16-Apr-07 8:35
T-Go16-Apr-07 8:35 
AnswerRe: Datagrid selection sync with fields. Pin
klaydze17-Apr-07 23:31
klaydze17-Apr-07 23:31 
QuestionWeb Browser- Local Pin
WLugo16-Apr-07 5:15
WLugo16-Apr-07 5:15 
AnswerRe: Web Browser- Local Pin
Dave Kreskowiak17-Apr-07 1:52
mveDave Kreskowiak17-Apr-07 1:52 
QuestionDatagrid Pin
Dayekh16-Apr-07 4:21
Dayekh16-Apr-07 4:21 
AnswerRe: Datagrid Pin
Dave Kreskowiak17-Apr-07 1:51
mveDave Kreskowiak17-Apr-07 1:51 
GeneralRe: Datagrid Pin
Dayekh17-Apr-07 2:06
Dayekh17-Apr-07 2:06 
GeneralRe: Datagrid Pin
Dave Kreskowiak17-Apr-07 3:44
mveDave Kreskowiak17-Apr-07 3:44 
GeneralRe: Datagrid Pin
Dayekh17-Apr-07 3:59
Dayekh17-Apr-07 3:59 
GeneralRe: Datagrid Pin
Dave Kreskowiak17-Apr-07 7:22
mveDave Kreskowiak17-Apr-07 7:22 
GeneralRe: Datagrid Pin
Dayekh17-Apr-07 11:12
Dayekh17-Apr-07 11:12 
QuestionHow to show video from DVR Card? Pin
somchoto16-Apr-07 4:05
somchoto16-Apr-07 4:05 
AnswerRe: How to show video from DVR Card? Pin
Dave Kreskowiak16-Apr-07 4:36
mveDave Kreskowiak16-Apr-07 4:36 
Questionvb dot net doubt Pin
shalinikannan16-Apr-07 2:12
shalinikannan16-Apr-07 2:12 
AnswerRe: vb dot net doubt Pin
kubben16-Apr-07 2:18
kubben16-Apr-07 2:18 
AnswerRe: vb dot net doubt Pin
Dave Kreskowiak16-Apr-07 3:31
mveDave Kreskowiak16-Apr-07 3:31 
QuestionConnection Error Pin
reykentj16-Apr-07 1:57
reykentj16-Apr-07 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.