Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Sintax error in Opus 7.06
PostPosted: September 13th, 2011, 9:33 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
I wonder why I get the message - "Expression contains errors" for a page script in the Opus Pro 7.6. This error does not happen in version 6.04 of Opus Pro.

This seems to be a line with problem for the expression. Unfortunately, I can not find another way to use the "SetINIFileData" and "GetINIFileData" in this script, because I need to save the page data in the windows user.

BOT_AVis=GetINIFileData( <SYSTEM_WINSYS_DIR> + "Quizz_001.ini","Page001Status","CLICK_A001");

Thanks for any help...

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Re: Sintax error in Opus 7.06
PostPosted: September 13th, 2011, 10:09 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Loose the <>

BOT_AVis=GetINIFileData( SYSTEM_WINSYS_DIR + "Quizz_001.ini","Page001Status","CLICK_A001");

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: Sintax error in Opus 7.06
PostPosted: September 13th, 2011, 10:37 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Great Mack!!!!

I do not know where I got these "<" and ">". It will be a pain to remove the many errors, but better to let the script perfect and functional.

Thanks for your help!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Re: Sintax error in Opus 7.06
PostPosted: September 13th, 2011, 10:55 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
Do you have the opusscript in one or more Script Objects, or do you have this code scattered under many objects (Triggers & Actions)?

If you have code in a Script Object, it is easy to Save the code as an External Script File. There you can to a global 'find & replace' in your text editor. Then revert the Script Object back to "Internal" and you will be prompted to Import the changed script. (you could achieve same thing by Cut and Paste over into text editor, and return Paste the changed code).

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


Top
 Profile  
 
 Post subject: Re: Sintax error in Opus 7.06
PostPosted: September 14th, 2011, 2:56 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
The <> are used in file paths in dialogue boxes such as the browser object, etc.

Lar's right. Get into the habit of not putting excess code in script action. Use it to call a function in script object (inc external file) as this is much easy to maintain / debug.

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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 60 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group