¿ªÔÆÌåÓý

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

Re: smpl+ help with making a code to reverse string


 

You could try something like this:

DIGITAL_INPUT Test_Reverse;
BUFFER_INPUT Key_Input$[1024];

String_Output Out$;

Push Test_Reverse
{
String working$[1024],
building$[1024];
If(Len(Key_Input$))
{
working$ = Key_Input$;
ClearBuffer(Key_Input$);
While(Len(working$))
{
building$ = Remove(Left(working$,1), working$) + building$;
}
Out$ = building$;
}
Else
Out$ = "No string to reverse";
}

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