Try it like this...
Place the following lines in the first app:[tt]
TYPE Variables
ShortInt AS INTEGER
LongInt AS LONG
SinglePrec AS SINGLE
DoublePrec AS DOUBLE
WriteTime AS STRING * 8
END TYPE
REDIM MyVariable(1 TO 1) AS Variables
MyVariable(1).ShortInt = 32767
MyVariable(1).LongInt = 2147483647
MyVariable(1).SinglePrec = 3.402823D+38
MyVariable(1).DoublePrec = 1.797693134862315D+308
MyVariable(1).WriteTime = TIME$
OPEN "C:\DataFile.Dat" FOR BINARY AS #1
PUT #1, 1, MyVariable(1)
CLOSE #1
[/tt]
Add the type declarations and REDIM statementto the second app and add the following lines:
[tt]
OPEN "C:\DataFile.Dat" FOR BINARY AS #1
GET #1, 1, MyVariable(1)
CLOSE #1
PRINT MyVariable(1).ShortInt
PRINT MyVariable(1).LongInt
PRINT MyVariable(1).SinglePrec
PRINT MyVariable(1).DoublePrec
PRINT MyVariable(1).WriteTime
[/tt]
Naturally, you would want to make sure that the values are up to date. The "WriteTme" string will tell the second app how recently the data was saved from the first app.
I hope this starts you out on the right foot. Check QBasic help for more details on the variable types and the OPEN, PUT, GET and CLOSE commands.
[sig]<p> <br><a href=mailto: > </a><br><a href=
plain black box</a><br>[/sig]