Sign in to follow this  
Followers 0
rubep

Write a series of numbers

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0