¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Simpl+ Analog_Input vs Long_Integer


 

I'm not needing a larger number but 0-65534 but any value outside of that range is entered I am not getting an error but a conversion that still saves that value.

#DEFINE_CONSTANT maxLevels 65534

Change AudioLevel
{
x = GetLastModifiedArrayIndex();
if((AudioLevel[x] < 0) || (AudioLevel[x] > 65534))? ??
{
? ? ? ? ? ?makestring(Error$, "Audio Levels are from 1 to %u", maxLevels);
}? ??
Else
{
? ? Busy = 1;
AudioLevelFb[x] = AudioLevel[x];
AudioLevelFbTemp[x] = AudioLevelFb[x];
Busy = 0;
}
}
?

Join [email protected] to automatically receive all group messages.