48 views
in Embedded Wizard Studio by
Good Day to All.

is it possible to do a #define in coding inside slots and methods.

for example i want to define my array elements for later use with shorter names.

#define bit0 = Application::Storage.EW_CAN1_Digit_Array[0]

#define bit1 = Application::Storage.EW_CAN1_Digit_Array[1]

#define bit2 = Application::Storage.EW_CAN1_Digit_Array[2]

if(bit1 || bit2 || bit3 == 0)

//do someting

1 Answer

0 votes
by

Hello,

this is not possible in Chora. Maybe you can achieve the same with local variables? For example:

var bool bit0 = Application::Storage.EW_CAN1_Digit_Array[0]
var bool bit1 = Application::Storage.EW_CAN1_Digit_Array[1]
var bool bit2 = Application::Storage.EW_CAN1_Digit_Array[2]

if(bit1 || bit2 || bit3 == 0)
  ...

Best regards

Paul Banach

by
Thanks i will do it the long way for the time being. Will keep this in mind.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...