Page 1 of 1

Create and call a class

PostPosted: Fri May 16, 2014 6:38 pm
by krackerjaxz
Depending on what.programming language you're coming from this goes by a couple terms: function or class.

I'm wanting to create a function or class that can be used throughout my application. Let's say I create a function that checks if the editbox contains any numbers. Instead of scripting this at every editbox I could create a function. For each editbox I could have it call this function when the text changes.

How can this be done with the scripting language? That is, where would the function code reside and how to call it from any object as described? I'm aware of using the timer object to perform similar. However, I was just curious from a programming standpoint if functions could be created and called.

Re: Create and call a class

PostPosted: Fri May 16, 2014 10:33 pm
by Wrangler
Run help and search for 'functions'. Functions are great and easy to implement.

Re: Create and call a class

PostPosted: Sun May 18, 2014 2:47 pm
by Neosoft Support
Yes, press F11 in NeoBook to access the function library. Here you can create your own custom functions in either NeoBook's scripting language or VBScript. The functions you create can then be called from other NeoBook scripts using the Call action.

Re: Create and call a class

PostPosted: Mon May 19, 2014 1:59 pm
by dpayer
Neosoft Support wrote:Yes, press F11 in NeoBook to access the function library. Here you can create your own custom functions in either NeoBook's scripting language or VBScript. The functions you create can then be called from other NeoBook scripts using the Call action.



Don't forget JScript (javascript) is also available to use.

There are some examples of using functions on the resource center link (at top of this page).

David P.