>Hello everyone:
>I want to display the content of a logical variable(.T. .OR. .F.) AS FOLLOWS :
>
>WAIT WINDOW 'THIS IS THE VALUE'+lMyvariable
>
>but I get an error: operator/operand type mismatch.
>
>How can I convert this variable to character so I can display it with the WAIT WINDOW command.
>
>Thanks,
>Sergio
Sergio,
All the previous answers are great. But, remember, you're not limited to just a ".T." or ".F.". Using the IIF illustrated in the 1st response, you can use any string...i.e.
WAIT WINDOW 'THIS IS THE VALUE '+IIF(lMyvariable,"True","False") or
WAIT WINDOW 'The value, '+IIF(lMyvariable,"True","False")+' was entered')
Bill
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only