将所有字符转换为'*',其中显示密码... [英] Convert all characters to ' * ' where password is displayed...

查看:61
本文介绍了将所有字符转换为'*',其中显示密码...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的记录集中有一个名为RS的字段(密码)。

如果我希望将每个字符显示为asterix''*''我怎么去

关于它。

我见过替换功能,但无法解决如何为

记录中有多少个字符?

感谢你的帮助


大卫。

Hi,

I have a field from my recordset called RS("Password").
If I wish to display each character as an asterix ''*'' how do I go
about it.
I''ve seen the replace function, but cannot work out how to do it for
how ever many characters there are in the record ?
Appreciate your help

David.

推荐答案

对于i到Len(RS(密码))

strPass = strPass& " *"

下一页


然后在你的展示中使用strPass


" David" <哒*** @ scene-double.co.uk>在留言中写道

news:c1 ************************** @ posting.google.c om ...
For i to Len(RS("Password"))
strPass = strPass & "*"
Next

then use strPass iin your display

"David" <da***@scene-double.co.uk> wrote in message
news:c1**************************@posting.google.c om...


我的记录集中有一个名为RS(密码)的字段。
如果我希望将每个字符显示为星号'' *''我该如何去讨论它。
我已经看过替换功能,但是无法知道怎么做
记录中有多少个字符?

感谢你的帮助

大卫。
Hi,

I have a field from my recordset called RS("Password").
If I wish to display each character as an asterix ''*'' how do I go
about it.
I''ve seen the replace function, but cannot work out how to do it for
how ever many characters there are in the record ?
Appreciate your help

David.



谢谢,


我刚开始考虑使用For I =,但想不到

关于strPass = strPass& " *"

好​​一个....谢谢


***通过Developersdex发送 http://www.developersdex.com ***

不要只是参加USENET ...奖励它!
Thanks,

I had just started to think about using For I = , but could not think
about the strPass = strPass & "*"
Nice one....Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


Alex Goodey于2004年2月2日在

microsoft.public.inetserver.asp.general写道:
Alex Goodey wrote on 02 feb 2004 in
microsoft.public.inetserver.asp.general:
For i to Len(RS(" Password))
strPass = strPass& " *"
下一页
For i to Len(RS("Password"))
strPass = strPass & "*"
Next



strPass = String(Len(RS(" Password")))," *")


-

Evertjan。

荷兰。

(请将x''es更改为圆点在我的电子邮件地址)



strPass = String(Len(RS("Password")),"*")

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


这篇关于将所有字符转换为'*',其中显示密码...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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