Indigo Rose Software
  #1  
Old 09-30-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
EXAMPLE: Dynamically Populate ListBoxes

Hello,

This example demonstrates how to dynamically insert items into ListBox objects. In this project there are two listbox objects. The first (province) is populated based on files located inside a specific directory. When an item is selected in the province listbox, the second listbox (city) is populated based on the contents of a specific file in the same directory.

Skills Used: File.Find, Read Text File To Table, ListBox Object, Dynamically add Items, Object Interaction.
Attached Files
File Type: apz ListBox_Province_City_Select_6.0.0.0.apz (15.7 KB, 996 views)
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #2  
Old 10-04-2006
Phil Merry Phil Merry is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Posts: 34
Oops Dynamic List Boxes

Desmond

I am writting an application that utilises your apz for dynamically updating list boxes, I can obviously change the data pre build and it works fine, but I need to point to an external 'list' that is in constant change.

A bit on the thick side, but how can I modify your script to point to an external file that may be on a usb drive?

The file names will remain the same on all users but the data content will be diiffent.

Best Regards

Phil Merry
Reply With Quote
  #3  
Old 10-04-2006
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Hello,

The cities for each province are loaded from seperate text files for each province through this action:
Code:
tProvinceFiles = File.Find(_SourceFolder .. "\\AutoPlay\\Docs\\Provinces", "*.txt", false, false, nil, nil);
You could change
Code:
_SourceFolder .. "\\AutoPlay\\Docs\\Provinces"
To point to another folder outside of your application, for example:
Code:
_SourceDrive .. "\\YourFolderHere"
Desmond.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #4  
Old 11-25-2006
Mathew202 Mathew202 is offline
Forum Member
 
Join Date: Nov 2006
Posts: 24
Hi, is there any way to modify this so it looks at default folder (providence) then instead of looking at text documents it looks at folders,

once selectd folder was selected for file list it would then display another list of txt files, when one of them was elected it would appear as a link at the bottom or in a new window ?

many thanks :_)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help on populate Combo Box carlossequeira AutoPlay Media Studio 5.0 0 07-19-2005 10:23 AM
Dynamically Sized Web Browser The Phantom AutoPlay Media Studio 5.0 4 10-23-2004 02:03 PM
Populate a listbox Lub AutoPlay Media Studio 5.0 1 02-05-2004 10:09 AM
Please help with listboxes and window visibility! tomwrn AutoPlay Media Studio 4.0 0 07-03-2003 04:23 PM
INFO: Dynamically Resizing an Application at Runtime Support AutoPlay Media Studio 4.0 Examples 0 10-21-2002 03:23 PM


All times are GMT -6. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software