Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: text disapears
PostPosted: September 4th, 2009, 6:05 pm 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
I have a strange problem with a variable that looses text.
I made a button to load a file, and the name of the loaded file will be displayed in a variable. So far no problem, but when i press the load button, the open dialog pops up and when i choose cancel instead of a file the variable is empty. Nothing strange because i didn't pick a file. But when i try to load an other file then the loading goes good, but the text var stays blank.
I also tried to reset the variable etc. The only thing that helps is to start the application again.

What can be the problem?



Ad

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 4th, 2009, 8:34 pm 
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:
displayed in a variable.

How?

More details if using TextInput object. e.g., what properties and settings?

You also do not say if using Page var... persistent/non-persistent. Etc, etc. those things matter.

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


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: September 4th, 2009, 8:52 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
This is because Opus returns a null / blank to your variable. It can be as useful as it is a pain.

The solution is to read the contents in to a tmp variable first and write it back if null / blank after the file browse action.

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


Last edited by mackavi on September 7th, 2009, 2:57 pm, edited 1 time in total.

Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 4th, 2009, 9:41 pm 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Thanks Mac



Ad

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: text disapears
PostPosted: May 13th, 2010, 4:16 pm 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
I thought i solved the problem but i still have the same problem when i break up an "open file" action.
What id did is:
Open file and store result in var LOAD1 (use it as a temp var) If LOAD1 is empty do nothing,
if LOAD1 contains data then set a delay of 0.3 sec. then set var LOAD1 to READ1 (the target var) but the problem stays.
How do i have to make a temp var in this case?


Ad

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: text disapears
PostPosted: May 14th, 2010, 4:01 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
Post your code. Eliminate guesswork.

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


For this message Lar_123 has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 40 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