Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable a list item
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00983072
Message ID:
00983152
Views:
14
>I changed it to "\\", and no change. Still not disabled
>
>
>
>>>I have the following code. Note the "\-" to disable
>>>the row. But the row is still enabled. What am I doing
>>>wrong here?
>>>
>>>
>>>SCAN FOR BatchNo # 0
>>>
>>>nRow = nRow + 1
>>>
>>>  cRecordId  = TRANSFORM(Id)
>>>  cEntryDate = SUBSTR(TRANSFORM(EntryDate), 1, 10)
>>>  cTranDate  = SUBSTR(TRANSFORM(TranDate), 1, 10)
>>>  cBatchId   = TRANSFORM(BatchId)
>>>  cCount     = TRANSFORM(Cnt)
>>>  cEntity    = EntityId
>>>  nRow       = nRow + 1
>>>				
>>>  .lstBatches.AddListItem("\-" + cRecordId, nRow, 1)
>>>  .lstBatches.AddListItem(cEntryDate, nRow, 2)
>>>  .lstBatches.AddListItem(cTranDate, nRow, 3)
>>>  .lstBatches.AddListItem(cBatchId, nRow, 4)
>>>  .lstBatches.AddListItem(cCount, nRow, 5)
>>>  .lstBatches.AddListItem(cEntity, nRow, 6)
>>>			
>>>ENDSCAN
>>>
>>
>>
>>I believe you need to use "\\" to disable.


I know this does not help, but this is from the VFP 8.0 Help file itself.

"You can disable an item in a list box or combo box by adding a single backslash to the beginning of the expression."

So, your first idea was right.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform