Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

List Items Clear current label

Posted on 2004-04-07
4
Medium Priority
?
321 Views
Last Modified: 2013-12-12
Hi,
    Does anybody knows how to clear the existing label of an Item List? I know Clear_List Function...What I mean is after I have cleared my Item List still the current label still exist....anyone has an idea?

regards
0
Comment
Question by:GoodHands_Delphi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
musdu earned 60 total points
ID: 10776813
Hi

if "Required" property of your list istem is "NO", Clear_list built-in clears all list items. But if it is "YES", it does not clear current label. So first set "Required" property to "NO" then clear list.

Set_Item_Property('MYLISTITEM', REQUIRED, PROPERTY_FALSE);
Clear_List('MYLISTITEM');

regards.
0
 

Author Comment

by:GoodHands_Delphi
ID: 10777515
hi
0
 

Author Comment

by:GoodHands_Delphi
ID: 10777532
hi
  I tried your solution but it seems nothing happened...still current label exists once i press button for refresh...I have set required to NO and then try SET_ITEM_PROPERTY..by the way I use combo box for my list style..FYI....tnx...appreciate for you reply...


regards
0
 
LVL 6

Expert Comment

by:musdu
ID: 10777726
Hi,

set "Initial Value" property of your list item to NULL during design time (If you need an initial value, assign it in when-new-form-instance trigger)

regards
----------------------
For a Poplist or T-list-style list item, CLEAR_LIST will not clear the default value element or the other values element from the list if they do not meet the criteria specified for deleting these elements with DELETE_LIST_ELEMENT.

When either the default value or other values element cannot be deleted, CLEAR_LIST leaves these elements in the list and clears all other elements. Refer to the restrictions on DELETE_LIST_ELEMENT for more information.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question