dcsimg
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Oct 26, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


List View Control and Structure in Data Attribute

Question:
I populate the list view control with the required items and each of these items are set with a pre-defined structure in the data attribute of the list view item.

When I access the data in the structure through some code it works fine in most of the cases. But in some cases, the data attribute loses the structure information and causes an error while reading from the attribute. What is wrong?

Answer:
This is one of those situations where PowerBuilder lets you do something but I would not recommend it.

I don't recommend that you populate the data attribute of the listviewitem with a structure. Instead, I would recommend that you have an unbound array of structures in your program and store the index to the array in your listviewitem. This makes it faster and removes the problems you are encountering.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date