Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / eventsource error! Need some help fast!

Author
Message
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 31st Aug 2007 15:06
Hi!
Here is what i got
Line 69 - if eventtype()=MOUSE_CLICK and eventSource=cmdXPPos then Move_Pluss_X(PickObj)

variable 'eventSource' name is not valid at line 69

What am I doing wrong?

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Aug 2007 16:12
Missing its brackets - it's a function isn't it?

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 31st Aug 2007 16:54
no...

its in the main loop..
Can u make me an easy example with 1 button?

here is what i got, and cmdXPPos and so on is the name of my buttons...


IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Aug 2007 19:11
I think you missed it.

EVENTSOURCE is as BlueGUI function. You have either missed out the brackets whenever you use it, or you are trying to use a variable with the same name which is not allowed.

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 31st Aug 2007 20:06
okey...
but im using bluegui... So its the syntax that is wrong?

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Aug 2007 20:10
if eventtype()=MOUSE_CLICK and eventSource()=cmdXMPos then Move_Minus_X(PickObj)

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 31st Aug 2007 20:28
ah-h... Omg, so stupid of me..

Thanks a lot!

Login to post a reply

Server time is: 2024-11-22 22:53:24
Your offset time is: 2024-11-22 22:53:24