hpwTreeView and GotoPage - Forum

Forum Navigation
You need to log in to create posts and topics.

hpwTreeView and GotoPage

In hpwTreeViewCreate, I have added the code below to left click

IfEx "[RTreeView2_Text]" "=" "England & Wales"
GotoPage "GRO"
Else
MessageBox "DblAction 2" "RTreeView2_Text" "" ""
EndIf

But get from line 1,  "This action requires 1 Parameter(s)". Yet it still goes to the page. I have IfEx as this will need to send me to more than one page.( to be added) What have I done wrong?

yours

Michael

If "[RTreeView2_Text]" "=" "England & Wales"

 

this is correct

regards

@m-burdess

The IFEx command has one parameter, which means one pair of quotation marks in the record.

However, since you are using a string with spaces, you should add the ASCII code for quotation marks for the string with spaces:

IfEx "[RTreeView2_Text] = [#34]England & Wales[#34]"

Alternatively, replace spaces with the ASCII code for spaces:

IfEx "[RTreeView2_Text] = England[#32]&[#32]Wales"

You can also use a variable for comparison instead of a string:

SetVar "[Var1]" "England & Wales"
IfEx "[RTreeView2_Text] = [Var1]"

Alternatively, you can use the code suggested by @rasl above.

alangonzalez91 has reacted to this post.
alangonzalez91

@rasl  & @vadim Thank you for the help. I looked at it this morning and changed the code.

 

@m-burdess

luishp, Vadim and rasl have reacted to this post.
luishpVadimrasl