Sign in to follow this  
Followers 0
emanemos

problem conversion value to name

4 posts in this topic

I have a problem :

My _IEFormElementGetvalue returns the value 9 or I want the name associated with this value Stab_def

(in the source </ option> <option value="9"> Stab_def).

Which function must I use to get Stab_def instead of 9?

 

Code
$oForm = _IEFormGetObjByName ($oIE, "mainForm")
$Value=_IEFormElementGetObjByName($oForm,"mtbeStabilityDefinitionUs_")
_ExcelWriteCell($oExcel,_IEFormElementGetvalue($Value), $j,3)
 
Thanks for your help.
 


 

Share this post


Link to post
Share on other sites

_ExcelWriteCell($oExcel,_IEFormElementGetvalue($Value), $j,10)
$Value=_IEFormElementGetObjByName($oForm,"mtbeStabilityDefinitionUs_")
$txt = String($Value.innertext)
_ExcelWriteCell($oExcel,$txt, $j,3)

I get defaultStab....Stab_Def..... (for all the values from 1 to 20)

source <option value="1">defaultStab .......</option><option value="9">Stab_Def)........

or i only want Stab_Def for value="9"

Thanks
 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0