| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Sep 19, 2002 8:51 pm Post subject: Possible VDSLISTS.dll BUG ? |
|
|
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.
Nathan (Rubes_sw) |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Sep 19, 2002 8:55 pm Post subject: Help |
|
|
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
Nathan |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Sep 19, 2002 8:56 pm Post subject: |
|
|
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.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Sep 19, 2002 9:00 pm Post subject: Did not work :( |
|
|
Thanks for the tip, but it did not work, seem thing still happening.
Nathan |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Sep 19, 2002 9:00 pm Post subject: |
|
|
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 |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Sep 19, 2002 9:02 pm Post subject: Tried that too.... |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Sep 19, 2002 9:05 pm Post subject: |
|
|
Tommy I'm sure will be in here later and maybe have an answer for you on this.
-Garrett |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Sep 19, 2002 9:07 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Sep 19, 2002 9:12 pm Post subject: |
|
|
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 |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Sep 19, 2002 9:13 pm Post subject: |
|
|
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 |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Thu Sep 19, 2002 9:14 pm Post subject: |
|
|
| 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 |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Thu Sep 19, 2002 9:29 pm Post subject: |
|
|
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 |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Thu Sep 19, 2002 9:34 pm Post subject: |
|
|
| 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 |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Sep 19, 2002 9:41 pm Post subject: Thanks |
|
|
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 |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Thu Sep 19, 2002 9:42 pm Post subject: |
|
|
LOL
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!  |
|
| Back to top |
|
 |
|
|
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
|
|