This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic