Solved

For VeroLand

Posted on 1998-10-22
1
145 Views
Last Modified: 2010-04-30

Hi,

You have previously answered a Question named
Password/Login from File.

In this example, which I found most interesting,
how do you populate your array from a file?

That is, loading the username and password from a file.

0
Comment
Question by:idcanada
1 Comment
 
LVL 2

Accepted Solution

by:
Veroland earned 0 total points
ID: 1441160
   Dim strInput As String
    Dim LoginPWD(3, 2) As String
    Dim I As Integer
   
    I = 0
    Open "d:\aaa_source\testfile.txt" For Input As #1
    Do Until EOF(1)
        Input #1, strInput
        LoginPWD(I, 0) = strInput
        Input #1, strInput
        LoginPWD(I, 1) = strInput
    Loop


The layout of the text file is as follows

User1
Password
User2
Hello
User3
1234

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now