I'm not familiar with that plug in.
If you use the data viewer in FileMaker advanced or show custom dialog to display the contents of $htmltext, what do you see?
Is it today:
-0.2% ( first occurrence )
33.094379 ( second occurrence )
Yes, I am looking to retrieve 33.094379. I realise why I cannot find it within my $htmltext as the site asks for a confirmation before showing the page that I want. When I retrieve the page in Safari it must have remembered the confirmation and takes me straight in.
If you place a Web Viewer in the layout, give it the name: wv and put that URL ( "http://uk.ishares.com/en/pc/products/EXSA" ) into it, an unstored calculation, resul text:
HTML = GetLayoutObjectAttribute ( "wv" ; "content" ) ;
start = Position ( HTML ; "nav_per_share_change_pct" ; 1 ; 1 ) ;
p1 = Position ( HTML ; "<" ; start ; 1 ) + 6 ;
p2 = Position ( HTML ; "<" ; start ; 2 )
Substitute ( Middle ( HTML ; p1 ; p2 - p1 ) ; [ Char ( 9 ) ; "" ] ; [ Char ( 10 ) ; "" ] ; [ Char ( 13 ) ; "" ] ; [ Char ( 32 ) ; "" ] )
will give you the first occurrence.
Change start to Position ( HTML ; "nav_per_share_change_pct" ; 1 ; 2 ) and you'll have the second occurrence.
That worked. Thank you very much.