?
Solved

For VeroLand

Posted on 1998-10-22
1
Medium Priority
?
161 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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

840 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