|
-
Sep 6th, 2000, 05:44 PM
#1
I have a string variable that is set from a textbox text string and I need to save it to a binary file. There are also a bunch of other misc values I have to save to this same file too (Boolean, Single, and String values)
Dim IntroChecked As Boolean
Dim IntroDir As String
Open Filename For Binary Access Write As #1
Put #1, , IntroChecked
Put #1, , IntroDir
Close #1
This doesnt seem to work correctly. The string isn't saved correctly for some odd reason but the IntroChecked value is saved correctly.
I'm thinking that maybe I have to set the IntroDir variable as something other than a string for binary saving. I have no idea.
Please Help.
-Simon Bingier
-
Sep 7th, 2000, 07:51 AM
#2
transcendental analytic
Check out your other thread
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 11th, 2000, 03:50 AM
#3
Hi,
try this code:
'declares section of form
Private Type Intro
IntroChecked As Boolean
IntroDir As String
End Type
'
Dim x as Intro
x.IntroChecked=True
x.IntroDir="C:\Windows"
Open Filename For Binary Access Write As #1
Put #1, , X
Close #1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|