Jump to content

genfunc problem


Mary_p

Recommended Posts

HI,

I must count every time that the user press key "1",

a simple way is use :

 

genfunc ++ 0 count

 

so the result is ..count=2...

 

BUT

when I begin count variable is not define (NULL) and so the

syntax above become:

genfun ++ count

and so the result is not useful.

Ok, the solution is write a new plugin... ok,

 

but with a 2.41 vers of IVM there is a way to initialize to zero some variables?

(I have seen it on 3.01 and is it ok)

 

"where" I can write count:=0 ??

 

thanks,

really good software...

M.

Link to comment
Share on other sites

Hi Mary,

 

yes you can do that with version 3.01

 

In 2.43 I used to do this by reading the variable from a textfile in the very first OGM. Probably this is the same in 2.41 (?)

Just one simple textfile containing:

init,0

 

Then use getdata.exe to read the value of init and return this as the variable count (or another name if you prefer). This way count is set with value 0.

 

Regards,

Martijn

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...