Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Fri Jul 11, 2003 8:52 am Post subject: Help with Table in VDS5 |
|
|
I have a dialog with the table on it:
| Code: |
DIALOG ADD,TABLE,TABLE1,22,5,789,167,Status[80]|Account[250]|Server IP[100]|Server DNS[150]|Username[100]|Password[100]|Email[250]|Server[100],,click
|
I select New Account from the Menu,
runs
| Code: |
:New AccountMenu
%%newaccount = 1
goto evloop
|
And when i click button1 it runs
| Code: |
:button1button
if @equal(%%newaccount,1)
if @equal(@dlgtext(check1),1)
list add,table1,Active@tab()@dlgtext(edit1)@tab()@dlgtext(text6)@tab()@dlgtext(text8)@tab()@dlgtext(edit2)@tab()@dlgtext(edit3)@tab()@dlgtext(edit4)@tab()@dlgtext(combo1)
else
list add,table1,In-active@tab()@dlgtext(edit1)@tab()@dlgtext(text6)@tab()@dlgtext(text8)@tab()@dlgtext(edit2)@tab()@dlgtext(edit3)@tab()@dlgtext(edit4)@tab()@dlgtext(combo1)
end
LIST SAVEFILE,table1,@path(%0)swp.dat
%%newaccount =
goto evloop
end
if @equal(@dlgtext(check1),1)
LIST PUT,table1,Active@tab()@dlgtext(edit1)@tab()@dlgtext(text6)@tab()@dlgtext(text8)@tab()@dlgtext(edit2)@tab()@dlgtext(edit3)@tab()@dlgtext(edit4)@tab()@dlgtext(combo1)
else
LIST PUT,table1,In-active@tab()@dlgtext(edit1)@tab()@dlgtext(text6)@tab()@dlgtext(text8)@tab()@dlgtext(edit2)@tab()@dlgtext(edit3)@tab()@dlgtext(edit4)@tab()@dlgtext(combo1)
end
LIST SAVEFILE,table1,@path(%0)swp.dat
goto evloop
|
If the list is empty it will add the account to table1, if the list is not empty it will just add the entry:
Active (nothing else)
Any ideas? Advice? Fixes ?
Nathan |
|