Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 23rd Feb 2010 12:00
Hi!
I have a string var called sugg$ which is equal to lets say 9-20-33-45-55-11 .. I want to sort that string into ascending numerical order, so that the string reads .. 9-11-20-33-45-55 (with the -'s ibetween!)


thanks for any help

Hail to the king, baby!
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Feb 2010 14:42
It can be done, but it's a lot of work when compared to simply changing your string to a string array.

TDK

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Feb 2010 15:00
It's not too difficult using my plug-in set:


shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 23rd Feb 2010 18:27
Oh boy.that is beautiful! a brilliant plugin..worked like a dream..thanks IanM

Hail to the king, baby!
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 23rd Feb 2010 18:44
Legendary! lol

My signature is NOT a moderator plaything! Stop changing it!
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 24th Feb 2010 06:40
IanM , can this make it easy also to sort out somehow,and print,which 6 numbers have been out the most!
for instance it I have an array call num(49)
and you filled them with random numbers
lets say num(49) was equal to 50 and num(5) was equal to 5
what i want is the top 6 from the array that has the most in,so obviously in the example num(50) would go above num(5)
Thanks for any help

Hail to the king, baby!
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 24th Feb 2010 06:50
As you may guess I am doing a lotetry database, for my own personal use!

I can have it pick 6 random numbers for me and have it check them against the previous draws to see if they have been out, which it does do now.pretty well..of course if they havent been out then they are good to go! I spent a few days inputting all the drawn numbers, from year dot..lol!
what i want also now as a small gimmiky thing is to have it list the 6 most occuring numbers,and the 6 least occuring numbers, then have it make a pick of a mixture from the most and least (hot and cold) .. I have included a screeny of the proggy lsiting all the numbers and how many times they have been out, note how number 13 amazingly is the least occuring..hehe!
Btw Mobiius, what you mean legendary?!
I am only trying to sound grateful

Hail to the king, baby!

Login to post a reply

Server time is: 2026-07-27 04:04:52
Your offset time is: 2026-07-27 04:04:52