Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox color
Message
From
02/02/2004 16:00:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00873033
Message ID:
00873136
Views:
14
Timothy,

It maybe because RECNO() is numeric... Maybe try wrapping it: ALLTRIM(STR(RECNO())

Not sure, but that was my first thought.

Greg
>it's doesn't like the syntax of:
>define bar RECNO() ON PTEMP prompt TRANS(bar_code)+TRANS(report__)
>
>I'm not too familiar with the define bar as I've not actually used it.
>
>
>>>well the listbox already exists as such:
>>>WITH THISFORM.mylISTbox1
>>>.ROWSOURCE = ''
>>>.ROWSOURCETYPE = 0
>>>.ROWSOURCETYPE = 3
>>>.ROWSOURCE = "Select bar_code,report__,office,acct,cond,serial__,noun from d:\adpe INTO CURS PTEMP"
>>
>>>Would your idea still work?
>>
>>No, you must go into ROWSOURCETYPE = 9 schema.
>>
>>Select bar_code,report__,office,acct,cond,serial__,noun from d:\adpe INTO CURS PTEMP
>>define popup PTEMP RELATIVE
>>define bar RECNO() ON PTEMP prompt TRANS(bar_code)+TRANS(report__)+... COLOR FIRSTROW
>>SKIP
>>scan REST
>>   define bar RECNO() ON PTEMP prompt TRANS(bar_code)+TRANS(report__)+... COLOR otherrows
>>endscan
>>....
>>
>>
>>Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform