BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Table widget


#1

the table widget is great !

But it would be nice to be able to adjust the width of the columns!

the value is truncated, so it’s unusable

30-025517


#2

I worked around the problem by inverting the columns

My question is why the degree symbol ‘N°’ is wrong ?
30-025518


#3

I depends on how you send the character value…


#4

like this

String Col = "| Test N°" + String(Count);

so I will try

String Col = "| Test N"+ "\u00B0C" + String(Count);

I think it’s the same for French é è ç à ù
but why ?


#5

Not a clue… perhaps something about how Blynk uses strings to send widget data… a conversion issue perhaps?


#6

Where is my mistake ? :wink:

String Col = “| Test N” + “\u00B0C”+ String(Count);
^
exit status 1
invalid operands of types ‘const char [9]’ and ‘const char [4]’ to binary ‘operator+’


#7

Missing some brackets perhaps?

String Col = (“| Test N” + “\u00B0C”+ String(Count));


#8

nope :thinking:

setup:104:32: error: invalid operands of types ‘const char [9]’ and ‘const char [4]’ to binary ‘operator+’

 String Col = ("| Test N" + "\u00B0C"+ String(Count));

                            ^

exit status 1
invalid operands of types ‘const char [9]’ and ‘const char [4]’ to binary ‘operator+’


#9

@Gunner

here is the right way :wink:

String Col = "Test N" +String("\u00B0")+ String(Count);

#10

You can always switch values for name and value columns in your Table add/update calls.


#11

:joy::joy::joy::joy::joy:

1 décembre !!!
01-025667