[fpc-pascal] specify variable name with string variable
James Richters
james at productionautomation.net
Tue Jul 9 00:04:26 CEST 2019
I’m curious how use classes together with published properties would work, is there a sample of how to use this somewhere?
James
From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> On Behalf Of Sven Barth via fpc-pascal
Sent: Monday, July 8, 2019 5:31 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Cc: Sven Barth <pascaldragon at googlemail.com>
Subject: Re: [fpc-pascal] specify variable name with string variable
James Richters <james at productionautomation.net <mailto:james at productionautomation.net> > schrieb am Mo., 8. Juli 2019, 22:44:
SetStoragePinByName('Ini_Opto_Enable_Positive_Pin', True) ;
And it would somehow get the value of 'Ini_Opto_Enable_Positive_Pin
That indeed sounds like something where you could use classes together with published properties. At least if you're willing to spend a bit of effort.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190708/d3b3abde/attachment.html>
More information about the fpc-pascal
mailing list