如果有6个空格,可以输入字符串吗? [英] Concat the string if 6 spaces are available?

查看:98
本文介绍了如果有6个空格,可以输入字符串吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试如果文本中出现6个保守空格然后它会在单行中出现?

例如



a)在名称............................和............... .......

b)对于未成年人,他的出生日期.................. ......



可由未成年人的父母/监护人Shri / Smt封杀..........

c代理商的名称...................................

d)授权证书没有..........................



我想要如下: -

a)在名称............................和....... ...........................
b)对于未成年人,他的出生日期.......... ........未成年人的父母/监护人Shri / Smt可以封杀..........

c)代理商的名字..... ...............................

d)授权证书没有....... ...................

I'm trying to if 6 Conservative spaces are occurred in text then it con cat in single line?
e.g

a) In the name(s)............................and ............................
b) In the case of minor, his date of birth........................

encashable by the minor's parent/guardian Shri/Smt ..........
c) Agent's name ...................................
d) Certificate of Authority No..........................

I want as follow:-
a) In the name(s)............................and ............................
b) In the case of minor, his date of birth........................encashable by the minor's parent/guardian Shri/Smt ..........
c) Agent's name ...................................
d) Certificate of Authority No..........................

推荐答案

不要做丑陋的东西我在历史机械打字机上为空白创建的文本中没有提到。使用 TextBox ,它实现为文本< input> 元素:

< a href =https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox%28v=vs.110%29.aspx> https://msdn.microsoft.com /en-us/library/system.web.ui.webcontrols.textbox%28v=vs.110%29.aspx [ ^ ]。



另请注意,对于所有非丑陋的字体,字符数(间隔与否),它几乎无关紧要,因为它们不是等宽,不同的文本具有相同的占用不同空间的字符数。



-SA
Don't do ugly stuff inherited from the texts created for the blanks on a historical mechanical typewriter. Use TextBox, which is implemented as the text <input> element:
https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox%28v=vs.110%29.aspx[^].

Also note that for all non-ugly fonts, the number of characters (spacer or not), it pretty much irrelevant, because they are not monospace, different texts with the same number of characters take different space.

—SA


这篇关于如果有6个空格,可以输入字符串吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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