A forward declaration is where you're saying the details/definition of an object (for example the body of a function) will be defined later but it's existence has to be declared earlier so it can be used and still keep the compiler happy.
In more technical oo terms, you would use forward...
The only way I was able to use a function in a VB dll was to create an oleobject.
I declared a global variable go_object of type n_oo (I'm using the PFC).
Then in my code I instantiate the ole object, connect to it using ConnetToNewObject and call the function:
go_oleobject = CREATE n_oo...
If you want to make sure your validation always occurs, you might want to consider putting the validation in a c function. Then you can call call the function from both itemchanged and before the data is saved. That way if the user enters data and goes directly to the save icon (for example)...
You have a number of options depending on where/how your random number generator is called and whether the user is going to select one/more number and press copy or just wants the number(s) to automatically appear in the new window.
The easiest approach is probably to just pass the datawindow...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.