Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
VB Data/Read Command?
Name: stroke6463 Date: June 24, 2005 at 17:13:12 Pacific OS: XP Pro CPU/Ram: idk
Comment:
Hey I haven't used VB in awhile so I'm a little rusty. Is there some type of Read and Data command for VB? I'm trying to convert an old QB program to VB and it has the Read/Data command.
Data 10, 12, 14 Read x
Basically, I need a line of numbers I can read for input with a command in the VB program. I don't want to use a text file just because I don't want people to see the numbers. Thanks a lot.
Name: StuartS Date: June 24, 2005 at 18:10:23 Pacific
Reply:
There is no equivelant to the Read and Data comands in VB. Thats was DOS basic only.
However what VB does have the DOS Basic didn't have are more flexible Array functions.
Put the numbers in and array and read them with a For/next loop.
Dim MyArray(10) as integer
MyArray(0) = 34 Myarray(1) = 23 MyArray(2) = 56
and so on
Then read them with a loop.
For a = 0 to 10 Print MyArray(a) Next
Stuart
0
Response Number 2
Name: stroke6463 Date: June 24, 2005 at 20:25:27 Pacific
Reply:
I'll just use that. It's a little bit of extra work but in the end it will have the same function. I was hoping for just a quick command so I didn't have to change it all. Thanks.
Summary: Hi, this might be a strange question, but here goes anyway. I was wondering how sound recording / playback applications such as Audacity or Windows Media Player can record data to a file, and also ho...
Summary: I am new to VB. I am using VB 6.0 Enterprise Edition to create a database application. I have been trying to add a data report to the application that will access the database created in the applica...
Summary: I have a two table db (access 2000) and have them linked. A VB interface reads and displays data using a Dynaset as RecordType and an SQL query as it DataSource. The problem is that the recordsettype ...