简体   繁体   English

编程语法-在数组中搜索与输入匹配的字符串-Visual Basic

[英]Programming syntax - searching an array for a string matching input - visual basic

Ok, I've combed the entire internet and can't find anything to help me here; 好的,我已经整理了整个互联网,在这里找不到任何可以帮助我的东西。 I can't figure out the syntax for searching an array of stored words for a string matching an input string. 我无法弄清楚从存储的单词数组中搜索与输入字符串匹配的字符串的语法。

I understand the pseudocode of it, but I'm tripping up over what variables I need to put where, and how they should be formatted. 我了解它的伪代码,但是我将深入探讨我需要将哪些变量放在何处以及如何格式化它们。 If anyone here can help, it'd be greatly appreciated. 如果这里有人可以提供帮助,将不胜感激。

More than happy to provide more details should anyone request them. 如果有人要求,我们很乐意提供更多详细信息。

Pseudocode; 伪代码;

Found = False

Loop through all the elements of the array

If current element = input, 

Then found = True

End of loop

This is from the internet you've searched : http://msdn.microsoft.com/en-us/library/eefw3xsy(v=vs.80).aspx 这是从您搜索过的互联网上获得的: http : //msdn.microsoft.com/zh-cn/library/eefw3xsy( v= vs.80).aspx
And this is for vb6 : http://www.vb6.us/tutorials/searching-arrays-visual-basic-6 这是针对vb6的: http ://www.vb6.us/tutorials/searching-arrays-visual-basic-6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM