If i select Slight, it should change the value to AA AA AA AA between 5th to 8th array of byte only. If i select Full, it should change the value to AA AA AA AA between 13th to 16th array of bytes only.
Last, if i select Off, all value will set to default FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00
UDF1.CEComboBox1.OnChange=function()
index = combobox_getItemIndex(UDF1.CEComboBox1);
addresslist=getAddressList()
aldesc=addresslist.getMemoryRecordByDescription("Yep")
if aldesc~=nil then
if index == 0 then --off
aldesc.value="FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00"
end
if index == 1 then --slight
aldesc.value="FF 00 00 00 AA AA AA AA FF 00 00 00 FF 00 00 00"
end
if index == 2 then --half
aldesc.value="FF 00 00 00 FF 00 00 00 AA AA AA AA FF 00 00 00"
end
if index == 3 then --full
aldesc.value="FF 00 00 00 FF 00 00 00 FF 00 00 00 AA AA AA AA"
end
else
showMessage("'Yep' not found..Error!!")
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum