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 


Disappearing values of EDIT-boxes

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


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

PostPosted: Sat Aug 03, 2002 6:33 pm    Post subject: Disappearing values of EDIT-boxes Reply with quote

While I was making something that gives VDS more events like :EDIT1CHANGE and that kind of stuff, I founded out this:

Code:

  DIALOG CREATE,New Dialog,-1,0,240,160
  DIALOG ADD,EDIT,EDIT1,13,23,,,EDIT1
  DIALOG ADD,EDIT,EDIT2,47,26,,,EDIT2
  DIALOG ADD,EDIT,EDIT3,71,28,,,EDIT3
  DIALOG ADD,EDIT,EDIT4,99,30,,,EDIT4
  DIALOG SHOW

list create,9
list loadtext,9
"EDIT1
"EDIT2
"EDIT3
"EDIT4


:Evloop
gosub MoreEvents
goto %%event

:Close
exit

:MoreEvents 
%%numberofitems123 = @count(9)
rem --- Next line deletes the input of the control named @item(9,*), in
rem --- this case Number 2
parse "%%editname123;%%firstpar123;%%secondpar123";@item(9,2)
repeat
%%event123 = @event()
until %%event123,@equal(%%numberofitems123,%%number123)

if @not(@null(%%event123))
  %%event = %%event123
  exit
  end
 
goto MoreEvents


If you start the program it will empty (in this case) EDIT3...

Strange, isn't it???

If you change the name of an EDIT-box (in this example change EDIT3 to EDIT30 or something) and then 'call' it it will give you an Errorcode 5... (Invalid variable name or too many variables)
Back to top
View user's profile Send private message
Skit3000
Admin Team


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

PostPosted: Sat Aug 03, 2002 7:23 pm    Post subject: Reply with quote

Ps. it only seems to 'work' in VDS 3.51.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports 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