NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

去除字符串后的空格

已解决!
转到解答

有谁知道去除字符串后的空格

 

 

"adc dbd ghg          "

 

变成

 

"adc dbd ghg" 

0 项奖励
1 条消息(共 7 条)
6,477 次查看

Do you have the Trim Whitespace.vi under String functions palette?

 

Trim Whitespace.PNG 

Message Edited by ian fung on 01-22-2010 03:11 PM
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 7 条)
6,474 次查看

i am using the CVI, can you tell me a function in CVI ?

0 项奖励
3 条消息(共 7 条)
6,422 次查看

I see... you should have mentioned that... some CVI experts might be able to give you the answer then... hope you will solve it soon 🙂 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
4 条消息(共 7 条)
6,419 次查看
解答
已被主题作者 Gerryli 接受

Hi,

 

void RemoveSurroundingWhiteSpace (char string[]);

Message Edited by ian fung on 01-25-2010 11:08 AM
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
5 条消息(共 7 条)
6,414 次查看

ian fung 写:

Hi,

 

void RemoveSurroundingWhiteSpace (char string[]);

Message Edited by ian fung on 01-25-2010 11:08 AM

Hi, Sir

 

 thanks for you helps, i have tested this command, it is really i want.  en. looks you are also CVI expert  🙂

0 项奖励
6 条消息(共 7 条)
6,410 次查看

并不是因为我知道, 而是因为我努力查找 😉 

 

PS: 虽然开始时有接触过CVI, 但因不太喜欢Text-based 编程, 所以自一九九九年都以LabVIEW为主...

 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
7 条消息(共 7 条)
6,401 次查看