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


Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Mar 24, 2005 6:52 am Post subject: @Volinfo |
|
|
if @equal(@volinfo(d,t),CDROM))
goto DHDD-CDROM
else
end
end
:DHDD-CDROM
dialog set,EDIT14,@volinfo(d,s)
end
if @not(@equal(@volinfo(d,t),CDROM))
goto DHDD
else
end
end
:DHDD
dialog set,EDIT14,@format(@fdiv(@volinfo(d,s),1048576),0.2) GB
end
What im doing wrong here ? |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Thu Mar 24, 2005 1:23 pm Post subject: |
|
|
| Code: |
%%type = @volinfo(D,T)
if @equal(%%type,CDROM)
goto DHDD-CDROM
else
goto DHDD
end
:DH-CDROM
dialog set,...
goto Evloop
:DHDD
dialog set,...
goto Evloop
|
Try this Filip  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Mar 24, 2005 2:08 pm Post subject: |
|
|
Limitation in @volinfo
The code don't work yours or my
Thanks anyway... |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Thu Mar 24, 2005 2:10 pm Post subject: |
|
|
Works on my machine  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Mar 24, 2005 3:09 pm Post subject: |
|
|
| filip wrote: | Limitation in @volinfo
The code don't work yours or my
Thanks anyway... |
Probably because you should be testing for CD-ROM and not CDROM.
If you put a but of effort into investigating the problem, and stepped through the code in the debugger to see exactly what is happening, you could find this out for yourself, instead of expecting everyone else to find all your bugs for you... _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Mar 24, 2005 4:40 pm Post subject: |
|
|
BUGS and BEETLES...
@VOLINFO act differently you know
This don't read CDROM i get empty edit OK for me
(It only read HDD for some reason)
DIALOG ADD,EDIT,EDIT14,266,130,94,,,,READONLY
DIALOG ADD,EDIT,EDIT15,266,230,94,,,,READONLY
:DHDD
dialog set,EDIT14,@format(@fdiv(@volinfo(d,f),1048576),0.2) GB
dialog set,EDIT15,@format(@fdiv(@volinfo(d,s),1048576),0.2) GB
goto loop
IF i use this CODE i get NON-NUMERIC value ERROR
DIALOG ADD,EDIT,EDIT14,266,130,94,,@format(@fdiv(@volinfo(d,f),1048576),0.2) GB ,,READONLY
DIALOG ADD,EDIT,EDIT15,266,230,94,,@format(@fdiv(@volinfo(d,s),1048576),0.2) GB,,READONLY
Will be VDS 6 at same prize as VDS 5
Last edited by filip on Thu Mar 24, 2005 7:11 pm; edited 1 time in total |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Mar 24, 2005 6:58 pm Post subject: |
|
|
| filip wrote: | BUGS and BEETLES...
@VOLINFO act differently you now
This don't read CDROM i get empty edit OK for me
(It only read HDD for some reason)
DIALOG ADD,EDIT,EDIT14,266,130,94,,,,READONLY
DIALOG ADD,EDIT,EDIT15,266,230,94,,,,READONLY
:DHDD
dialog set,EDIT14,@format(@fdiv(@volinfo(d,f),1048576),0.2) GB
dialog set,EDIT15,@format(@fdiv(@volinfo(d,s),1048576),0.2) GB
goto loop
IF i use this CODE i get NON-NUMERIC value ERROR
DIALOG ADD,EDIT,EDIT14,266,130,94,,@format(@fdiv(@volinfo(d,f),1048576),0.2) GB ,,READONLY
DIALOG ADD,EDIT,EDIT15,266,230,94,,@format(@fdiv(@volinfo(d,s),1048576),0.2) GB,,READONLY
|
Well one thing you should not do is try to do everything in one line. Create the dialog element, then get the raw disk size, then do the calculation. Then you can see what values you are getting, and test for a null response so you don't try doing a calculation with it and getting an error.
| filip wrote: | | Will be VDS 6 at same prize as VDS 5 |
I'm sorry, I'm just a programmer, I can't answer commercial questions. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Thu Mar 24, 2005 7:11 pm Post subject: |
|
|
In which stage of development is VDS6.
Alpha 1,2,3 ?
Beta 1 ? |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Mar 24, 2005 9:11 pm Post subject: |
|
|
Its a work in progress. _________________ The Tech Pro
www.tech-pro.net |
|
| 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
|
|