Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Showing Variables Problem
PostPosted: November 20th, 2008, 10:20 am 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

I've started a simple application and created a number of variables. I've added some variables to a text box, but they're not appearing. However, I can see them in the Variable Watch window. Any ideas of anything simple I might not be doing?

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 20th, 2008, 10:50 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
I've added some variables to a text box

It might depend on 'How'.
If you Right-clicked on the text object and did "Insert Variable", it should work.

For testing purposes, try some of the already created Opus variables.

As for variables you create, you could make sure you have a default value so that it is not 'undefined' or having 'null' values.

Other than that, did you put some standard text in there as well --- as a way to make sure you're not using white text on a white background. :lol:

other ideas: Pub var vs. Page var.
Frames or Master-pages overriding what appears.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Variable Problems
PostPosted: November 20th, 2008, 11:02 am 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

I'v included system variables that show, and normal text which also shows. I've got two variables added, both of whcih have been added by right clicking and inserting variables, both of which are visible in the Variable Watch window, but only one of which is showing!

Text is all black so visible - I can't see any reason why text is not showing!

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 20th, 2008, 12:12 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Paul,

Can you post the example?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Variable Problem
PostPosted: November 20th, 2008, 12:15 pm 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

I created another variable to replace the one that was not showing - did it exactly the same way, and the variable appeared! No idea what was going on.

Does it matter in what way you add a variable to a text box? Surely going to TEXT - INSERT VARIABLE should work the same way as right clicking and INSERTing variable?

Thanks,

Paul

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 20th, 2008, 12:27 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Paul,

Just tried Text - Insert (never used this) but it did work.

May just a glitch - try it again next time you swithc on and load Opus and see if it still happens.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Variable Problem
PostPosted: November 20th, 2008, 12:29 pm 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

Thanks for your help and prompt replies - it's appreciated!

Paul

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject: Duplicate names
PostPosted: November 20th, 2008, 4:08 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Paul --

Double check your Pub to see if you have duplicate names for Objects and in particular Variables. I had something similar happen, and after many frustrating moments discovered a Variable with the exact same name as an Object. Once I changed the Variable name to something unique, the Variable displayed within a Text Object.

Years ago a programmer taught me to give text variables a name with a $ sign (Question$1). My number variables do not have a $ sign, but I usually add a number (Question1). I can easily tell what type of variable I'm working with by its name.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 20th, 2008, 10:45 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
Initialize the variables in a script object, and don't put var in front of them.
for example:

myVar = 24;

Might help.
Otherwise post an example that demonstrates the problem and save us the trouble of having to guess what is going on.

Paul


Top
 Profile  
 
 Post subject:
PostPosted: November 21st, 2008, 1:24 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
This is a common occurrence for me---Text box...insert variable and it's fine....variable shows, but sometimes if I move the text box, or format the text, or rearrange the variable within the text box---ie adding other text, or another variable..... it will not show when I run the application---I just create a new text box and re-insert the variable/s. Have never figured out why it happens.

_________________
Whoever designed this, never actually used it!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 62 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group