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 7027 times
0202.jpg
0202.jpg (50.1 KiB) Viewed 7027 times
0101.jpg
0101.jpg (65.66 KiB) Viewed 7027 times

kersing
Valued Contributor
Posts: 194
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 81 times
Been thanked: 65 times

Re: Generate a define for the property

Post by kersing »

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

BenR
Matrix Staff
Posts: 2305
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 637 times
Been thanked: 847 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 6978 times
Hopefully it should do everything you need it to do.

PropertyDemo.fcfx
(10.05 KiB) Downloaded 559 times
(view online)

Results in this being generated in the C code.

Code: Select all

#define MX_ENCODERKF_DEMO_0 portc
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

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