Hello, my program reads a file like this:
atmega328.upload.protocol=stk500
atmega328.upload.maximum_size=30720
atmega328.upload.speed=57600
atmega328.bootloader.low_fuses=0xFF
atmega328.bootloader.high_fuses=0xDA
I read one line, and I got (after remove some parts):
String1 := 'upload.protocol'
data1 := 'stk500'
I have a object with like this:
MYobject.upload.protocol
Myobject.bootloader.low
(etc. The object have property called like the lines)
Well I want to assign Data1 to MYobject.upload.protocol
I thought:
IF String1 = 'upload.protocol' Then
MYobject.upload.protocol := data1;
ElseIf (...)
But Can I access to the properties, in other way more easy?, like:
MyObject.[String1]:=Data1
I hope I explain... because It's a very complicate explain this problem for me in english
/BlueIcaro