Solved

List Items Clear current label

Posted on 2004-04-07
4
314 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 20 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

627 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