Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
flop  
#1 Posted : Wednesday, November 07, 2018 2:09:08 AM(UTC)
flop

Rank: Newbie

Groups: Registered
Joined: 2/1/2017(UTC)
Posts: 1
Belgium
Location: Kortenaken

Thanks: 1 times
Output_ text = Input_Integer ;

gives me errors (i'm not familiar with C++)

I want to use the results from integer calculations to edit in a display...
EmbrioAdmin  
#2 Posted : Sunday, November 11, 2018 2:42:58 PM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 109 time(s) in 104 post(s)
We followed up on this one in e-mail, for others here are the results.

For now if you need to convert a non string input to a string output, you'll have to implement the code in both C# and Arduino. To do this, on your node click on the double red arrow icon, which will show a tab for C# and Arduino code.

In the c# code you can use the ToString method like:

Output_String = Input_Integer.ToString();

For Arduino you have to cast to a string like this:

Output_String = (String)Input_Integer;

I've added doing this automatically to my todo list so you can use .ToString and it'll change it for the Arduino code.

If you need to convert a number to a string I would make a node that does just that, and feed the converted string value into your custom node so you don't have to implement the whole custom node in both languages.
thanks 1 user thanked EmbrioAdmin for this useful post.
flop on 11/14/2018(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error