Hello guys,
I have a sequence:
[TABLE="width: 97"]
<colgroup><col></colgroup><tbody>[TR]
[TD]00000001
[/TD]
[/TR]
[TR]
[TD]00000005
[/TD]
[/TR]
[TR]
[TD]00000009
[/TD]
[/TR]
[TR]
[TD]00000013
[/TD]
[/TR]
[TR]
[TD]00000017
[/TD]
[/TR]
[TR]
[TD]00000021
[/TD]
[/TR]
</tbody>[/TABLE]
I want to extend it indefinitely, well until it fits, but i was not sure what the best approach would be.
I was thinking of taking it as a string and use split to the first non 0, then turn that into a long add 4 to it and then switch it into a string and fill it up with 0 to make it an 8 digit. But i was unsure of how i can formulate my split. Any ideas? Or maybe a better approach?
I have a sequence:
[TABLE="width: 97"]
<colgroup><col></colgroup><tbody>[TR]
[TD]00000001
[/TD]
[/TR]
[TR]
[TD]00000005
[/TD]
[/TR]
[TR]
[TD]00000009
[/TD]
[/TR]
[TR]
[TD]00000013
[/TD]
[/TR]
[TR]
[TD]00000017
[/TD]
[/TR]
[TR]
[TD]00000021
[/TD]
[/TR]
</tbody>[/TABLE]
I want to extend it indefinitely, well until it fits, but i was not sure what the best approach would be.
I was thinking of taking it as a string and use split to the first non 0, then turn that into a long add 4 to it and then switch it into a string and fill it up with 0 to make it an 8 digit. But i was unsure of how i can formulate my split. Any ideas? Or maybe a better approach?