View previous topic :: View next topic |
Author |
Message |
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Mar 15, 2003 10:40 pm Post subject: Limit input length API and other useful APIs |
|
|
I never knew about this API tip and it could have saved me a lot of time
in the past.
Here's a quick example which will allow you to limit the lenth of user input
in edit boxes without using extra coding:
Code: | REM ** Example by FreezingFire (freezingfire@vdsworld.com)
DIALOG CREATE,Edit Box Example,-1,0,188,72,NOMIN
DIALOG ADD,EDIT,EDIT1,8,8,170,19
DIALOG ADD,BUTTON,Close,38,58,64,24,Close
DIALOG SHOW
%%len = 2
%x = @sendmsg(~EDIT1,$00C5,%%len,0)
:evloop
wait event
goto @event()
:close
exit |
For more APIs like this, click the link below:
http://www.vdsworld.com/~freezingfire/api.html _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Mar 16, 2003 10:35 am Post subject: |
|
|
Used the Wayback Time Machine? |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Mar 16, 2003 4:40 pm Post subject: |
|
|
Yep.
I just found that a few days ago and it's interesting to refresh one's
memory on how the internet looked years ago...
I've actually also used this to find old VDS sites like the VDS Programmer's Guild
and find the pages on VDS that were there and gone before I even
got a chance to look at them.
Link: http://web.archive.org/ _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Hortalonus Valued Contributor
Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Thu Apr 10, 2003 8:59 pm Post subject: |
|
|
Thank you, thank you, thank you FF!!! _________________ "ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player... |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Apr 10, 2003 9:49 pm Post subject: |
|
|
No problem... I liked the limit input length the best because before I knew
about it, I was looping through a timer and cutting the length if it went
over. Now it is much more stable. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Hortalonus Valued Contributor
Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Fri Apr 11, 2003 4:37 am Post subject: |
|
|
Same here... you've made my life a lot easier and I thank you! _________________ "ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player... |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1563
|
Posted: Fri Apr 11, 2003 5:59 am Post subject: |
|
|
The api handbook in the registered users section at dialogscript.com has tons of these api's. You should download it and check out some of the great api's available to vds. |
|
Back to top |
|
|
Hortalonus Valued Contributor
Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Fri Apr 11, 2003 1:22 pm Post subject: |
|
|
Thanks for the tip PG! The API messages are one thing I always seem to forget about... _________________ "ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player... |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Apr 11, 2003 7:11 pm Post subject: |
|
|
Thanks Prakash for reminding me!
I had entirely forgotten about that since I re-installed Windows on my
computer and wiped everything off. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Apr 11, 2003 7:16 pm Post subject: |
|
|
Hmmm... looks like SADE needs to recompile the setup with the newer
version of V-Setup -- I'm getting that OLEAUT32.DLL error again:
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1563
|
Posted: Fri Apr 11, 2003 10:09 pm Post subject: |
|
|
I think the help file can still be fished out of the c:\windows\temp directory, as vsetup extracts all files to a sub-directory in there (I think _vsetup). |
|
Back to top |
|
|
Sanjuro Contributor
Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Mon Aug 04, 2003 10:24 am Post subject: |
|
|
PGWARE wrote: | The api handbook in the registered users section at dialogscript.com has tons of these api's. You should download it and check out some of the great api's available to vds. |
I cant find this on the new re-vamped site? Has it been moved?
Cheers
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population. |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
|
Back to top |
|
|
Sanjuro Contributor
Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Mon Aug 04, 2003 12:42 pm Post subject: |
|
|
Thanks Dread!
I am fairly new to VDS, in fact all scripting/programming but the ability to call API's seems very powerful and also pretty interesting. Looking forward to the updated registered users area.
Cheers
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population. |
|
Back to top |
|
|
|