Data Access Worldwide Knowledge Base

Article ID 2318
Article Title EXAMPLE: Programmatically remove a filelist entry
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2318
KBase Category DATAFLEX (GENERAL)
Date Created 06/03/2007
Last Edit Date 06/08/2007


Article Text
QUESTION:
Is there an attribute to remove a File from a Filelist? Programmatically?

ANSWER:
Here is an example on how you could do that:

handle hFile

move 5 to hFile  // The filenumber to remove

Set_Attribute DF_FILE_LOGICAL_NAME of hFile to ""
Set_Attribute DF_FILE_ROOT_NAME of hFile to ""
Set_Attribute DF_FILE_DISPLAY_NAME of hFile to ""

This will clear the entry number 5 in the filelist.


Contributed By:
Allan Kim Eriksen
Company: NordTeam Gruppen ApS
email: ake@nordteam.dk
Web Site: http://www.nordteam.dk


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.