E=mc2
asked on
I would like to use a script to provide calculations from kg to lbs and viceversa
I would like a script that a user can simply double click.
It should prompt them if they want to convert from lbs to kg or kg to lbs.
Depending on what is selected they enter an amount, and then the calculated amount will then be provided for them.
It should prompt them if they want to convert from lbs to kg or kg to lbs.
Depending on what is selected they enter an amount, and then the calculated amount will then be provided for them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@joeklimis - Is your script a batch script, Powershell or VBScript?
Hi
this is a Powershell script , wich uses .net forms
just save it into a file and run it in the normal way
Joe
this is a Powershell script , wich uses .net forms
just save it into a file and run it in the normal way
Joe
ASKER
@MacroShadow - when trying to run the script nothing happens.
try adding Demo() as the last line to invoke the subroutine, you may not need the ()
ASKER
Joe are you referring to the script from MacroShadow?
ASKER
@MacroShadow - I added the Demo(), however after I enter the weight to convert, it does not calculate anything..
ASKER
@MacroShadow - if I try to run the script by doubleclicking the vbs file, I get an error:
Type mismatch: 'IIf'
Code: 800A000D
Type mismatch: 'IIf'
Code: 800A000D
@100questions - Yes I was , I am guessing this needed to be VB, its a sham as the Powershell rocked :-)
did you try the powershell ?
did you try the powershell ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks everyone, both work well.
Open in new window