Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Aug 03, 2002 6:33 pm Post subject: Disappearing values of EDIT-boxes |
|
|
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) |
|