Highlighted
Absent Member.
Absent Member.
370 views

SwfToolbar and ItemExists with costant or directly string

Hi,
i not found where is the error in following lines:

str = datatable.Value("menuStrip1_File1","Step 1")
menuItemChildOfFile1 = SwfWindow("MicAnalytics").SwfToolbar("menuStrip1").ItemExists(str)

menuItemChildOfFile2 = SwfWindow("MicAnalytics").SwfToolbar("menuStrip1").ItemExists("File;New...")

In watch tool, I see that str is equals to "File;New..."

But:
- menuItemChildOfFile1 is equals to False
- menuItemChildOfFile2 is equals to True

Why?

Thanks.

0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: SwfToolbar and ItemExists with costant or directly string

 

Hi,

There should be no difference if the value of "menuStrip1_File1" is "File;New...". If you run the following code, is 0 returned?

str = datatable.Value("menuStrip1_File1","Step 1")

msgbox StrComp(str, "File;New..."0)

Kind Regards,

Francisca

Highlighted
Absent Member.
Absent Member.

Re: SwfToolbar and ItemExists with costant or directly string

Hi,
I resolved.

My problem was about a cell format of my .xls file.

Thanks a lot!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.