vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
vb@rchiv Offline-Reader - exklusiv auf der vb@rchiv CD Vol.4  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Visual-Basic Einsteiger
Array? 
Autor: CkHunter
Datum: 29.01.02 20:02

Hallo! Ich hab in einer Newsgroup die Frage gestellt, was ich bei folgendem Problem machen soll:

"I'm writing something like a vocabulary-tester where you can input your
words and the program asks you to translate the word later. You can type in
two different words, in two different languages. One of the two words is
added to List1.List (I already did this). The other word should not be shown
to the user. You can type in world endlessly where one is added to
List1.List every time. The program then randomly picks a word from
List1.List, outputs it to the screen (I also already did this) and then
compares it with the user's input word. If it's correct, the word will be
removed from the list and you can go on, if it's wrong, you get a message
and the word is not removed from the list (I also made this already).

The program has to compare the randomly chosen word with the equivalent from
the other language that has been inputted by the user at the beginning. My
problem now is: how can I make the program remember which word the user
inputted as equivalent to the word that is added to the list? And, as the
words are selected randomly, how can I make the program find the right
equivalent to the word that is outputted on the screen?"

Und ich hab die Antwort bekommen:

"Define two string arrays.
Store the pairs of words in corresponding positions.
Choose "question" words by randomly picking an array index.
Store the array index into the ItemData property of the (NewIndex)
position in the listbox immediately after adding the "question" word.

So whenever a word is retrieved from the list, you have the index
into the array of "answer" strings."

Da ich aber ein ziemlicher Newbie in Sachen VB bin, hab ich nicht so richtig Ahnung, wie ich das machen soll... was ist denn eigentlich ein Array und wie kann ich so einen machen?


Danke im Vorraus!
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Array?66CkHunter29.01.02 20:02
Re: Array?225unbekannt29.01.02 20:18
Re: Array?33CkHunter29.01.02 20:27
Re: Array?210unbekannt29.01.02 20:46

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel