| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jul 24, 2003 1:33 pm Post subject: User-defined Function Problem |
|
|
Shouldn't this code return "1"?
| Code: | #DEFINE FUNCTION,CLIP
#DEFINE FUNCTION,UNCLIP
info @clip(20,20,40,20)
rem %A = @unclip()
exit
:CLIP
%a = 1
exit %A
:UNCLIP
%a = 1
exit %A |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jul 24, 2003 2:03 pm Post subject: |
|
|
Why not  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jul 24, 2003 2:04 pm Post subject: |
|
|
I think it's an unimplented function. Seems like some kind of @clipboard() function to me. Because of this, the @clipboard() (?) function is runned in stead of your own...
I once tried to make this work:
| Code: | #define function,pi
info @pi()
:Pi
exit 3.14 |
The same here: there must be some kind of function which starts with 'pi', but isn't mentioned in the helpfile...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jul 24, 2003 2:06 pm Post subject: |
|
|
Why didn't I think of that before?! I thought I was doing
something wrong!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jul 24, 2003 6:30 pm Post subject: |
|
|
Does pi stand for pixelsperinch ... wi....ld guess  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sun Jul 27, 2003 12:47 am Post subject: |
|
|
The same behaviour has always existed with commands and functions implemented by
VDS extension DLLs. That's often been the reason that the command and function names
in some DLLs are less nice than it may seem they could be. And that's for example the
reason why VDSLISTS.DLL uses the EXTLIST command/function name rather than
some others I had in mind. |
|
| Back to top |
|
 |
|