Generate a define for the property

Post and discuss new components that you have created.
Post Reply
OlegKRS
Posts: 9
http://meble-kuchenne.info.pl
Joined: Wed Dec 16, 2020 9:32 am
Been thanked: 3 times

Generate a define for the property

Post by OlegKRS »

Hi

I want to make a component that uses a property and for this property I ticked "Generate a define for the property". When compiled into C code, this property appears in quotation marks. How do I remove quotes when compiling to C code?
Attachments
0303.jpg
0303.jpg (43.15 KiB) Viewed 2377 times
0202.jpg
0202.jpg (50.1 KiB) Viewed 2377 times
0101.jpg
0101.jpg (65.66 KiB) Viewed 2377 times

kersing
Valued Contributor
Posts: 149
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 63 times
Been thanked: 56 times

Re: Generate a define for the property

Post by kersing »

The property type ‘line of text’ causes the quotes.

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Generate a define for the property

Post by BenR »

Hello,

I've created a demo for you where I remove the quote marks using an Compile -> AddProperty event macro.

Event.jpg
Event.jpg (50.51 KiB) Viewed 2328 times
Hopefully it should do everything you need it to do.

PropertyDemo.fcfx
(10.05 KiB) Downloaded 137 times

Results in this being generated in the C code.

Code: Select all

#define MX_ENCODERKF_DEMO_0 portc

OlegKRS
Posts: 9
Joined: Wed Dec 16, 2020 9:32 am
Been thanked: 3 times

Re: Generate a define for the property

Post by OlegKRS »

Hello,

Many thanks BenR.

Post Reply