Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange results in populating a listbox with a SQL state
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00191607
Message ID:
00191612
Views:
12
>Hi all,
>
>I am populating a list box with the following SQL:
>
>select branch, ;
> document, ;
> Sn, ;
> date, ;
> transform(amount, "$999,999,999.99"), ;
> (iif((Stop),"STOP",(iif((Void),"VOID",""))))as "Status" ;
>from register into cursor "z" + sys(3)
>
>The idea here is to indicate which checks have had a stop payment or have been voided. Both fields (Stop, Void) are logicals. The truly interesting thing is that sometimes the listbox will populate with "VOID" and "STOP" and sometimes it will poulate with "V" and "S".
>
>Does anybody have a clue what's going?

Does it work any better if you change the "" in the IIF to
"    "
, to match the other two? When you do something like this, the first record in the table can determine the width for the rest of the SELECT.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform