• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why the data in my GUI is block(diamond,square)??  RSS feed

 
daming wang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody!
can you tell me why the data in my GUI that I updated is end with block
like this:Splendide[][][][][]...,you know that the field size is 60,then execpt Splendide,there are 51 [].the code I write the file is that:

date[i] is the String of one field.I use ISO-8859-1 to coding.

thanks a lot.
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by daming wang:
hello everybody!
can you tell me why the data in my GUI that I updated is end with block
like this:Splendide[][][][][]...,you know that the field size is 60,then execpt Splendide,there are 51 [].the code I write the file is that:

date[i] is the String of one field.I use ISO-8859-1 to coding.

thanks a lot.


The data is asciiZ, that means that it is delimited by a byte of value 0. you should only use the portion up to that 0. I also trim leading and trailing blanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!