The Daily Click ::. Forums ::. Klik Coding Help ::. Need Help With My Factor Finder Program
 

Post Reply  Post Oekaki 
 

Posted By Message

Activ8games



Registered
  02/07/2003
Points
  463
9th January, 2004 at 16:27:32 -

The Factor Finder is a simple program that began as part of a school project. There were 2 edit boxes and a list. If you typed a number into a box, the list would show all of that number's factors. If you typed a number into both of the boxes, you would receive only the common factors of the 2 numbers.

I am working on an updated interface for the program and I wanted a way of inputing numbers that took less space. If someone wanted to find the common factors of multiple numbers, is it possible for them to enter all of them in one box separated by commas?

If so, then could someone please explain how to do this?
Specifically, I want the program to read the number list and store it. I am pretty sure I can work with it from there.


Image Edited by the Author.

 
Vote Quimby!!!

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
9th January, 2004 at 17:20:49 -

Use the string parser. I've no idea offhand but you can set a delimiter to "," and you can read bits of strings off it. Then you just Val() convert it.

And if you're interested, the mod keyword returns the remainder so if it is 0 then it's a factor. Yeah.

 
gone fishin'

Activ8games



Registered
  02/07/2003
Points
  463
9th January, 2004 at 18:51:48 -

Thanks for your help.

Yes I know about the mod keyword. This is in fact the very same method I am using.

Edit: I cant find string parser or string parser 2. The extension list links to some wierd mess of symbols and 3ee is down or something.

Thanks again

Image Edited by the Author.

Image Edited by the Author.

 
Vote Quimby!!!

Activ8games



Registered
  02/07/2003
Points
  463
9th January, 2004 at 19:16:08 -

OK found the first string parser but I have no idea how to use it.

 
Vote Quimby!!!
   

Post Reply



 



Advertisement

Worth A Click