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 


Help with Table in VDS5

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Fri Jul 11, 2003 8:52 am    Post subject: Help with Table in VDS5 Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Jul 11, 2003 9:44 am    Post subject: Reply with quote

Hi,

i had a problem like this when a : is inside a column

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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