找到字符串的结尾 [英] Find end of string

查看:80
本文介绍了找到字符串的结尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我希望有人可以帮助我,我有以下代码,每次点击按钮都会运行 - 我希望它能做的不是替换[AssignedBy1]中的当前文本,如果可能的话我想在逗号后添加它? (我希望它可以作为一个审计线索) - 任何帮助将不胜感激 - 我收集它需要是一个.Find,然后?????

Hello,

I hope someone can help me, I have the below code, this runs on every click of the button - what I would like it to do is instead of replace the current text in [AssignedBy1], if possible I would like it to add on after the comma ? (I would like it to work as an audit trail) - Any help would be greatly appreciated - I am gathering it needs to be a ".Find"," Then ?????"

展开 | 选择 | Wrap | 行号

推荐答案

@NigelBrown


我可能不完全理解这个问题,但这会有效吗?

@NigelBrown
I may not understand the question fully, but would this work?

展开 | 选择 | 换行 | 行号


@ajalwaysus


您可能想要留下尾随的,,否则这应该是您正在寻找的Nigel。
@ajalwaysus


现货AJ。请记住下次Nigel。
@ajalwaysus
You probably want to leave off the trailing ",", but otherwise this should be what you''re looking for Nigel.
@ajalwaysus
Spot on AJ. Please remember for next time Nigel.


我刚刚想到可能可以使用这种方法添加第一个。如果是这样,则需要一些稍微不同的代码以避免以,开头。
It''s just occurred to me that it may be possible to add the first one using this method. If so, some slightly different code would be required to avoid starting with a ",".
展开 | 选择 | Wrap | 行号


这篇关于找到字符串的结尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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