Jump to content

problem conversion value to name


emanemos
 Share

Recommended Posts

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.
 


 

Link to comment
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
 

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...