Jump to content
Macro Express Forums

Recommended Posts

Posted

Please help

 

what is wrong?

 

<MENU2:2:T:01:CenterCenter:testtest1

2

3

4

><IFVAR2:1:01:1:A><TBOX4:T:1:CenterCenter000278000200:000:a><ELSE><IFVAR2:1:01:1:B><TBOX4:T:1:CenterCenter000278000200:000:b><ELSE><IFVAR2:1:01:7:c><TBOX4:T:1:CenterCenter000278000200:000:c><ELSE><IFVAR2:1:01:1:d><TBOX4:T:1:CenterCenter000278000200:000:d><ENDIF><ENDIF><ENDIF><ENDIF>

 

i can display box a and b but not c or d

 

can anyone help?

Posted

Hi1

 

Just click "Ignore Case" box in 3rd and 4th compare; or fix the lower case letters !

 

Best, Randall

<MENU2:2:T:01:CenterCenter:testtest1

2

3

4

><IFVAR2:1:01:1:A><TBOX4:T:1:CenterCenter000278000200:000:a><ELSE><IFVAR2:1:01:1:B><TBOX4:T:1:CenterCenter000278000200:000:b><ELSE><IFVAR2:1:01:7:Tc><TBOX4:T:1:CenterCenter000278000200:000:c><ELSE><IFVAR2:1:01:1:Td><TBOX4:T:1:CenterCenter000278000200:000:d><ENDIF><ENDIF><ENDIF><ENDIF>

 

PS Also watch out if you are comparing using "Text" or "Value"; and "Case" commands are easier once you learn them;

Multiple Choice Menu: test

Switch (T1)

  Case: A

    Text Box Display: a

  End Case

  Case: B

    Text Box Display: b

  End Case

  Case: C

    Text Box Display: c

  End Case

  Case: D

    Text Box Display: d

  End Case

End Switch

<MENU2:2:T:01:CenterCenter:testtest1

2

3

4

><SWITCH:T1><CASE:A><TBOX4:T:1:CenterCenter000278000200:000:a><ENDCASE><CASE:B><TBOX4:T:1:CenterCenter000278000200:000:b><ENDCASE><CASE:C><TBOX4:T:1:CenterCenter000278000200:000:c><ENDCASE><CASE:D><TBOX4:T:1:CenterCenter000278000200:000:d><ENDCASE><ENDSWITCH>

Posted

Hello yaqwa!

 

If Variable %T1% contains "c"
 Text Box Display: c
Else
 If Variable %T1% = "d"
   Text Box Display: d
 End If
End If

Both your c and d tests are testing for a lowercase character. Change them to uppercase C and D or use the Ignore Case checkbox in the If Variable dialog.

Posted

@randallc

Multiple Choice Menu: test

Switch (T1)

  Case: A

    Text Box Display: a

  End Case

  Case: B

    Text Box Display: b

  End Case

  Case: C

    Text Box Display: c

  End Case

  Case: D

    Text Box Display: d

  End Case

End Switch

 

Thanks you are right this way is much easier

 

@ joe

 

Oh shit

i see i changed the c and d tests in upper case and it works

sometimes ..................... ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...