NP Toolkit


This is not compiled for V8i yet, as soon as i get a chance to do so i will - ben

intro

Here's the latest incarnation of my toolkit.

There is an explanation file in the  zip, and a test image to attatch.

Thanks to Jeff 's explanation of how to return 2d lists, the NParrayByGreyValues function now returns a 2d list.

There is a new function that makes collumn letters for excel ranges.

Have a play with it and see how you get on.

p.s. In the example file, if you change the transaction that deals with the NPisNumeric() function from Ask() to AskString() it'll no longer freak out if you give it a string.

 NP_Tools1.03 - zip with everything

 

The functions explained

NPdec2bin

int function(int intToConvert)

converts a decimal integer to a binary number as a string

NPbin2dec

int function(int binaryStringToConvert)

converts a binary number as a string to a decimal integer

NPFindTheBestTwo

int[] function(double[] myList)

NPbubbleSort

double[] function(double[] myList)

NPminInt

int function()

NPmaxInt

int function()

NPbeep

void function()

NPwait

void function(int milisecondsToWait)

NPmsgBox

void function(string message)

NPsumList

void function(double[] ListOfNumbers)

NPisNumeric

bool function(string NumberThing)

NPminInList

double function(double[] ListOfNumbers, bool trueForindexFalseForValue)

NPmaxInList

double function(double[] ListOfNumbers, bool trueForindexFalseForValue)

NParrayByGreyValues

double[][] function(string FilePath)

NPsuperRandomDouble

double function(double high, double low)

NPcolumnLetter

string function(int column)

how to install the toolkit...

  1. download it, duh
  2. unzip the folder to somewhere handy, probably your desktop if you are anything like me (a lot of people pretend that they have dial screens because it makes them more productive, lies, it's so they can keep more files on the desktop!)
  3. open GC
  4. go to tools, -->manage loaded feature types
  5. click select source code file (cs, vb), and a file dialog thingy will pop up - don't navigate to the NPtools1.03.CS file. we need to play on GS's terms!
  6. you will notice we are deep down in the deepest darkest parts of your file structure, it's dark and moist down here, so .cs files grow well. don't change the folder, no matter how green fingered you are.

  7. go to the folder that you just unzipped into (the new one, not the zip)
  8. right click on the .cs file and click copy
  9. go back to GC, the file dialog should still be up
  10. paste it into that folder
  11. click open
  12. that will take you back to the first dialogue.
  13. click load it!
  14. make sure that load automatically in future sessions is ticked
  15. then open the GCT from the zip file and play it through, remember to look in the console to see how things are gettign on.