Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 1st, 2024, 5:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: The problem with adding value variables
PostPosted: June 10th, 2011, 3:37 pm 
Offline

Joined: April 13th, 2010, 5:00 pm
Posts: 19
Opus: 9.75
OS: Windows 11
System: DELL
My problem is presented as an example in attachment.
Variables are from the database and I want to summarize it.
I do not sleep now three nights and read the whole forum and nothing.
Maybe someone has a script to the summary record from the database? That would be super. Please help.


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


Top
 Profile  
 
 Post subject: Re: The problem with adding value variables
PostPosted: June 10th, 2011, 4:27 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
The '+' is both a mathematical operator 3 + 6 = 9; as well as for string concatenating IE 'mack'+'is'+'great!' is mackisgreat!

Unfortunately as variables in Opus Script are not explicitly typed, the compiler doesn't always do what you'd expect with the +.

In this case, as you've inputted them via a text box, it's treating the values as strings not numbers.

Google 'Javascript Typecasting' for more information.

And update your profile and get some sleep!!!!

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: Re: The problem with adding value variables
PostPosted: June 21st, 2011, 5:23 pm 
Offline

Joined: April 13th, 2010, 5:00 pm
Posts: 19
Opus: 9.75
OS: Windows 11
System: DELL
Thank you very much


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 5 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