IDL create a empty string

来源:互联网 发布:枪球联动算法 编辑:程序博客网 时间:2024/05/22 14:34

I would like to create a blank string of length 1024. (That is, my string contains 1024 spaces.) What is the best way to do this in IDL?

 The best way to do this is to simply use the ASCII character representation of the space character, which is 32B, like this:

   blankString = String(Replicate(32B, 1024))

0 0
原创粉丝点击