Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 17th, 2024, 8:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Reading from file to a listbox?
PostPosted: March 8th, 2007, 3:21 pm 
Offline

Joined: February 5th, 2006, 3:39 am
Posts: 55
Location: Scotland
Hi everyone, can anyone help me with a small problem i have?

I have a listbox within a publication containing 30 variables. The contents of the box are read from file on page show. There are approx 15 seperate entries in the box at any time. This works ok. The problem I do have is that when I store the listbox selected text as a variable, when I try to display that variable on screen the text is actually the listbox variable name rather than its contents!!

I was hoping that enabling the listbox to read from an external text file would allow me to update the text file rather than the program if the need arose.

Anyone?


Top
 Profile  
 
 Post subject:
PostPosted: March 8th, 2007, 6:28 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

Could you post a sample .imp of this so that we can take a look? It may be easier to spot how you are setting the text selection points, etc., by viewing the actual script.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: March 9th, 2007, 9:56 am 
Offline

Joined: February 5th, 2006, 3:39 am
Posts: 55
Location: Scotland
Thanks for replying Stephen, a sample imp is included.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject:
PostPosted: March 9th, 2007, 2:37 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Synergy,

If I understand what you are trying to accomplish.

I don't think you can have the variable <listbox_selected_text> appear correctly when you click on the VAR in a text box when all the other VARs are included within that text box, because the text box has FOCUS not the individual variables.

The attached IMP has the variables in a frame, but each variable is in their own text box.

Have a look at the attached imp file. Place the IMP file in the same Folder with the fruit.txt.


You do not have the required permissions to view the files attached to this post.

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 9th, 2007, 11:01 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

It looks like Leo has come up with the perfect solution.

Kind Regards,

_________________
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: March 12th, 2007, 11:00 am 
Offline

Joined: February 5th, 2006, 3:39 am
Posts: 55
Location: Scotland
Thanks for the help folks. It does look as though Leo has a solution although I have only looked at it briefly. I will let you both know.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: March 15th, 2007, 4:29 pm 
Offline

Joined: February 5th, 2006, 3:39 am
Posts: 55
Location: Scotland
Thanks for replying you guys. The fix suggested by Leo works great and is exactly what I was looking for. It is a little bit more work than my original try but the duplicate feature of opus is just amazing in this instance.

For those who have not downloaded the IMP, it contains a listbox, populated from an external text file. The listbox contents can now take on a dynamic style with updates to the listbox contents only having to be made via the text file. The listbox content can also be selected and displayed or used elsewhere using the variable options.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group