r_amse_s 0 Posted Wednesday at 04:41 PM Hallo, weisst jemand wie kann ich mithilfe von GExpert in einer Klasse zB für 15 locale variablen automatisch properties dafür generieren. Geter und Seter muss nicht unbedingt sein, das kann die IDE auch. Ich finde leider nichts dafür in der Doku, bilde mir ein dass ich schon mal so etwas im GExpert verwendet habe danke! Share this post Link to post
dummzeuch 1518 Posted Wednesday at 05:27 PM I am not aware of such a functionality in GExperts (but it might be in MMX or in cnpack). But I have a keyboard macro for that purpose, which I use like this: declare the fields copy the field declaration to the public (or published) section of the class put the cursor at the beginning of the first field execute the macro execute the macro again until all fields have been converted to properties The macro is a recording of key strokes that changes the field declaration to a property declaration and at the end moves the cursor to the at the beginning of the next field declaration. See attached file. You can load it in the Keyboard Macro Manager. ReadWriteproperty.gxm Share this post Link to post
r_amse_s 0 Posted Wednesday at 05:58 PM nice, thanks! true, in MMX and cnpack there are also some mentions about such feature, but also nothing found useful Share this post Link to post