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 


Possible VDSLISTS.dll BUG ?
Goto page 1, 2  Next
 
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: Thu Sep 19, 2002 8:51 pm    Post subject: Possible VDSLISTS.dll BUG ? Reply with quote

I have called the DLL:

Code:

external vdslists.dll
elist fieldsep,|

DIALOG CREATE,DEMO,-1,0,599,415,CLASS VDSLISTS
elist window,#VDSLISTS
elist ADD,STYLE,STYLE13,,10,,,DKBLUE
elist add,list,l1,192,316,274,126,16,style13
.................................etc
etc
etc

dialog show
etc

elist list,add,l1,Provider: @dlgtext(c1)|1b.bmp
wait 0.8
if @equal(@dlgtext(chk2),1)
%%proxy = Yes
wait 0.5
elist list,add,l1,Use Proxy: %%proxy|1b.bmp
wait 0.5
elist list,add,l1,@dlgtext(e4)|1b.bmp
elist list,add,l1,@dlgtext(r1)|1b.bmp
elist list,add,l1,@dlgtext(port)|1b.bmp
else
%%proxy = No
elist list,add,l1,Use Proxy: %%proxy. (currently not available)|3b.bmp
end


The program seems to disregard the if @equal(@dlgtext(chk2),1) statement.

I mean if it is not ticked is still runs,

Code:

%%proxy = Yes
wait 0.5
elist list,add,l1,Use Proxy: %%proxy|1b.bmp
wait 0.5
elist list,add,l1,@dlgtext(e4)|1b.bmp
elist list,add,l1,@dlgtext(r1)|1b.bmp
elist list,add,l1,@dlgtext(port)|1b.bmp
etc
etc


Don't get me wrong, i think this dll is great and i have just purchased a license for it. Smile

Nathan (Rubes_sw)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rubes_sw
Valued Contributor
Valued Contributor


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

PostPosted: Thu Sep 19, 2002 8:55 pm    Post subject: Help Reply with quote

I just noticed if i use the above scripts etc....

If i am connected to the internet and try and run this scrip:
Code:

%%connection = my isp
RAS DIAL,%%connection


I get a error. I did not used to get an error Exclamation

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Sep 19, 2002 8:56 pm    Post subject: Reply with quote

I haven't tried this, but instead of using if @equal(@dlgtext(chk1),1) try using if @dlgtext(chk1).

That way there is probably less likely a chance of an error. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Rubes_sw
Valued Contributor
Valued Contributor


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

PostPosted: Thu Sep 19, 2002 9:00 pm    Post subject: Did not work :( Reply with quote

Thanks for the tip, but it did not work, seem thing still happening.

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Sep 19, 2002 9:00 pm    Post subject: Reply with quote

Or,

%%Temp = @dlgtext(chk1)
If %%Temp

End

Sometimes, it's better to put the contents into a variable, then check the
variable.

-Garrett


Last edited by Garrett on Thu Sep 19, 2002 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rubes_sw
Valued Contributor
Valued Contributor


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

PostPosted: Thu Sep 19, 2002 9:02 pm    Post subject: Tried that too.... Reply with quote

Garret I tried that too.. still no luck..

BTW, i am using:

Windows XP pro
Intel Celeron 400MHZ
128MB RAM
VDS 4.5

And version:

1.2.0.0 of VDSLISTS.DLL

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Sep 19, 2002 9:05 pm    Post subject: Reply with quote

Tommy I'm sure will be in here later and maybe have an answer for you on this.

-Garrett
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Sep 19, 2002 9:07 pm    Post subject: Reply with quote

Are you sure it is a VDSLISTS problem? It could be some bug in VDS...I've had wierder things happen such as VDS not hiding elements when I give the command DIALOG HIDE,ELEMENT...
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Sep 19, 2002 9:12 pm    Post subject: Reply with quote

You know, I think I had that problem in early VDS 3.x versions, but not in
3.5 or 4.5 versions.

-Garrett
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Thu Sep 19, 2002 9:13 pm    Post subject: Reply with quote

Hi Nathan,

I just experimented with adding a checkbox into the vdslists.dsc example script and it
seemed to return the status finely. Could you please send me the full script source
code at support@vdsworld.com so that I can try to debug it?

Thanks.

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Thu Sep 19, 2002 9:14 pm    Post subject: Reply with quote

I dont see the chk2 add line there; Try checking it. Didn't you forget any parameter? Did you spell the control name correctly? Etc
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Thu Sep 19, 2002 9:29 pm    Post subject: Reply with quote

I have found that when checking the status of a checkbox, using @NOT(@NULL(@DLGTEXT(chk2))) works when using @EQUAL(@DLGTEXT(chk2)) does not.

Try this...
Code:

external vdslists.dll
elist fieldsep,|

DIALOG CREATE,DEMO,-1,0,599,415,CLASS VDSLISTS
elist window,#VDSLISTS
elist ADD,STYLE,STYLE13,,10,,,DKBLUE
elist add,list,l1,192,316,274,126,16,style13
.................................etc
etc
etc

dialog show
etc

elist list,add,l1,Provider: @dlgtext(c1)|1b.bmp
wait 0.8
if @not(@null(@dlgtext(chk2)))
%%proxy = Yes
wait 0.5
elist list,add,l1,Use Proxy: %%proxy|1b.bmp
wait 0.5
elist list,add,l1,@dlgtext(e4)|1b.bmp
elist list,add,l1,@dlgtext(r1)|1b.bmp
elist list,add,l1,@dlgtext(port)|1b.bmp
else
%%proxy = No
elist list,add,l1,Use Proxy: %%proxy. (currently not available)|3b.bmp
end


Last edited by Hortalonus on Thu Sep 19, 2002 9:34 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Thu Sep 19, 2002 9:34 pm    Post subject: Reply with quote

Hm this has nothing to do with the problem, Hortalonus, but since @not and @null are EXACTLY the same command (see help file), and they both reverse the content (true to false, false to true), you can instead of using IF @not(@null(something)) use IF something . I also used if @not(@null()) until one or two months ago lol
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Rubes_sw
Valued Contributor
Valued Contributor


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

PostPosted: Thu Sep 19, 2002 9:41 pm    Post subject: Thanks Reply with quote

Thanks for the help guys, I am emailing Tommy with the script to see if he can debug it.

Its strange but everything functioned perfect until i added the vdslists functions, i just wanting to improve the interface of my program.

Thanks again:)

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Thu Sep 19, 2002 9:42 pm    Post subject: Reply with quote

LOL Laughing

You're right! How funny that I never picked up on that. I wonder how many unnecessary characters I typed doing it that way over the last 5 years? I swear it was in one of the example scripts that came with VDS 2.x. I just used the syntax they did.

Thanks for the tip! Smile
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
Goto page 1, 2  Next
Page 1 of 2

 
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