Jump to content

Write a series of numbers


Recommended Posts

Okay. I need to make a long damn work and I thought saving time in headings will save me from madness. Basically I need to enter numbers, not random but in order like this:

0001

0002

0003

...

0121

.... 

1001

........

2300

.......

The progression is always 1+1 but following that specific syntax (0001 to 3000)

I have read every manual and still have no clue how to do it. Some times it feels like the most simple task is the hardest at the same time.

Link to comment
Share on other sites

Have you tried anything at all? Anything?

Nope. At the moment only reading. It would be easy if the syntax was 1, 2, 3, by making a loop with $var = $var + 1, but I still haven't figured out how to export or convert 1 to 0001. Sorry, I am a rookie.

 

 
for $i= 1 to 3000
ConsoleWrite(StringFormat("%04s\n", $i))
Next

saludos

Gracias, amigo.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...