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 


@Volinfo

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


Joined: 07 Aug 2004
Posts: 340

PostPosted: Thu Mar 24, 2005 6:52 am    Post subject: @Volinfo Reply with quote

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
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Thu Mar 24, 2005 1:23 pm    Post subject: Reply with quote

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 Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Thu Mar 24, 2005 2:08 pm    Post subject: Reply with quote

Limitation in @volinfo

The code don't work yours or my

Thanks anyway...
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Thu Mar 24, 2005 2:10 pm    Post subject: Reply with quote

Works on my machine Wink
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Mar 24, 2005 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Thu Mar 24, 2005 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Mar 24, 2005 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Thu Mar 24, 2005 7:11 pm    Post subject: Reply with quote

In which stage of development is VDS6.

Alpha 1,2,3 ?

Beta 1 ?
Back to top
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Mar 24, 2005 9:11 pm    Post subject: Reply with quote

Its a work in progress.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message 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