Solved

For VeroLand

Posted on 1998-10-22
1
148 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access query that references subform 5 50
Problem to With line 4 86
Excel Automation VBA 19 116
Collapse and expand table in Word 2010 2 157
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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

734 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