Jump to content
Sign in to follow this  
dzordz

optional value

Recommended Posts

dzordz

I have big problem,

I do not know as put optional value

$optionalvalue = Numbers, words, letters etc....
$result1 = StringInStr(_IEBodyReadText($oframe1), "Text"&$optionalvalue&"Text2"

SORRY FOR MY BAD ENGLISH :)

Share this post


Link to post
Share on other sites
jlorenz1

Hi

you've forgotten the last ")"

$optionalvalue = Numbers, words, letters etc....
$result1 = StringInStr(_IEBodyReadText($oframe1), "Text" & $optionalvalue & "Text2")

Johannes


Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Share this post


Link to post
Share on other sites
dzordz

NO NO NO ! ;(

I need $optionalvalue = All

Share this post


Link to post
Share on other sites
MHz

Unless you can describe what you want in some more detail, then many answers can be considered for helping you.

This is one idea, but I think that you want to use StringRegExp() instead of StringInStr() in the search which allows optional characters to search for?

Global $optionalvalue
$optionalvalue &= 16
$optionalvalue &= 'word'

$result1 = StringInStr(_IEBodyReadText($oframe1), "Text" & Eval('optionalvalue') & "Text2")

:)

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  

×