forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


User-defined Function Problem

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jul 24, 2003 1:33 pm    Post subject: User-defined Function Problem Reply with quote

Shouldn't this code return "1"? Confused

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jul 24, 2003 2:00 pm    Post subject: Reply with quote

No... Twisted Evil
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jul 24, 2003 2:03 pm    Post subject: Reply with quote

Why not Question
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jul 24, 2003 2:04 pm    Post subject: Reply with quote

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... Confused

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jul 24, 2003 2:06 pm    Post subject: Reply with quote

Confused, angry Why didn't I think of that before?! I thought I was doing
something wrong! Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jul 24, 2003 6:30 pm    Post subject: Reply with quote

Does pi stand for pixelsperinch ... wi....ld guess Smile
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jul 24, 2003 6:48 pm    Post subject: Reply with quote

@pipe()... Wink Btw. FreezingFire told me... Rolling Eyes
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Jul 27, 2003 12:47 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group