VB帮助查找上一个 [英] VB Help on Find Previous

查看:65
本文介绍了VB帮助查找上一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我是这个论坛的新手

我需要VB的帮助

i需要代码查找上一个选项

我在表格中有一个RichTextBox和两个Command按钮[查找上一个和查找下一个]

我已经完成了查找下一个但不能查找上一个选项的代码

请帮我解决这个问题

我需要很快完成这项工作

先谢谢你

解决方案

大家好

帮我解决这个问题



大家好>
帮助我这个



你能发布,你在代码中做了什么,并解释了一点(你下次和之前发现的内容)。这样我们就能得到你需要的东西。


类似于InStr的存在:

函数InStrRev(StringCheck As String,StringMatch As String,[Start As Long = - 1],[比较为VbCompareMethod = vbBinaryCompare])长得好


它将按照名称建议反向搜索。设置开始按钮参数文本框的当前.SelStart。


示例(未经测试):

展开 | 选择 | Wrap | 行号

Hi Everyone
I am new to this forum
I need a help in VB
i need a code for Find previous option
I am having one RichTextBox and two Command buttons [Find Previous and Find Next] in the Form
I have done the code for Find Next but not able to do for Find Previous Option
Please help me on this issue
I need to finish this work very soon
Thanks in Advance

解决方案

Hi Everyone
help me on this


Hi Everyone
help me on this

Can you post, what you done in your code and explain little bit more (What you find next and previous). So that we can get what you need.


Similar to InStr exists:
Function InStrRev(StringCheck As String, StringMatch As String, [Start As Long = -1], [Compare As VbCompareMethod = vbBinaryCompare]) As Long

It will search in reverse direction as the name suggests. Set the "Start" parameter to the textbox''s current .SelStart.

Example (untested):

Expand|Select|Wrap|Line Numbers


这篇关于VB帮助查找上一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆