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 


EDIT add,<item> ???

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sat Sep 28, 2002 10:52 am    Post subject: EDIT add,<item> ??? Reply with quote

Does anyone knows a script which can add a line to an edit box?

I'v tried
Code:
%%edit = @dlgtext(editbox)
%%edit = %%edit@cr()@dlgtext(text_to_add)
dialog set,editbox,%%edit



But it don't works... Crying or Very sad

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Sep 28, 2002 11:14 am    Post subject: Reply with quote

Here ya go:
Code:

OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac
DIALOG CREATE,Test Program,-1,0,300,200
  DIALOG ADD,BUTTON,Add,5,210,85,20,,,DEFAULT
  DIALOG ADD,EDIT,E1,5,5,200,20,"A line of text"
  DIALOG ADD,EDIT,E2,30,5,290,165,"This is a test",,MULTI
DIALOG SHOW

:EVLOOP
  WAIT EVENT
  goto @event()

:AddBUTTON
  LIST CREATE, 1
  LIST ASSIGN, 1, @dlgtext(E2)
  LIST ADD, 1, @dlgtext(E1)
  DIALOG SET, E2, @text(1)
  LIST CLOSE, 1
  goto EVLOOP

:CLOSE
  EXIT

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sat Sep 28, 2002 11:17 am    Post subject: Reply with quote

Tnx for ya help! Very Happy
_________________
phpBB Development 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: Sat Sep 28, 2002 11:47 am    Post subject: Reply with quote

Why not simply use this???
Code:

dialog set,editbox,@dlgtext(editbox)@cr()@chr(10)@dlgtext(text_to_add)
Back to top
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sat Sep 28, 2002 11:49 am    Post subject: Reply with quote

That works to!
Tnx! Very Happy

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Sep 28, 2002 12:18 pm    Post subject: Reply with quote

Thanks Skit, Smile

@chr(13)@chr(10) also works. Strangely, I had
just tried @chr(10)@chr(13), but it doesn't work
with @chr(10) first.... Confused

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
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