> Harold Hallikainen wrote: > >>> On Fri, Jul 24, 2009 at 21:10, Harold Hallikainen wrote: >>>> Thanks! That does show the string on a character by character basis. >>>> I'm looking to see the whole string in the "value" field. Strings >>>> seem to show up ok there if they are not in an array of strings, >>>> but otherwise I have to read the string vertically, which is more >>>> difficult. It'd be great if one of the properties was "ASCII >>>> String" and another was "ASCII Character". >>> >>> How do you define your array? >>> >>> Since MPLAB behaves correct for an array of chars (which is a >>> string) then perhaps it wants some perculiar variable type for it to >>> show "correctly" (i.e. horizontal) in the watch window. >> >> I'm defining the array like this: >> >> int8_t LogData[10][40] >> >> I've previously defined int8_t as char. I'd like to see the 40 >> character lines in the watch window. Instead, I see the individual >> characters listed one per index. > > You can try to define the strings, then an array of strings... doesn't > make a difference for C, but maybe for MPLAB. > > typedef int8_t LogString[40]; > LogString LogData[10]; > > Also, maybe you can watch LogData[0] etc... does this make a difference? > Or try to use char instead of int8_t. Even though it's typedef'ed, you > never know what MPLAB does with this... > > Gerhard > THANKS! Putting LogData[0] in the watch window worked! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist