|
-
Apr 24th, 2000, 07:56 AM
#1
Thread Starter
New Member
hey everyone,
im creating a program that reads in a name and number from a text box and then writes them to a file. my problem is that the number gets written to the file with " " around it and when i call it to use as numeric input it recieves the default value of 0. i declared the variable as single , so im stumped. anyways if someone can help it would be really appreciated.
thanks, meth
"When the going gets weird, the weird turn pro"
-
Apr 24th, 2000, 08:12 AM
#2
Fanatic Member
What are you using for File IO?
Random File Access will work the best for this, create a User type and PUT it to the file. the user type for the number can be long or integer (or byte) and it will write it in binary.
remember to convert the text info to numeric first (with Val(), Clng() or whatever)
Paul
-
Apr 24th, 2000, 08:17 AM
#3
Thread Starter
New Member
hey paul,
Val function....i can't believe i missed that. thanks for responding.
meth
"When the going gets weird, the weird turn pro"
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
|