All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 15-06-2005, 10:29 AM
liamhoey
Guest
 
Posts: n/a
Angry Global Variables

I am having problems with defined GLOBAL variables.

e.g. I have defined a variable at the start of my main procedure

GLOBAL nInstall&

When I attempt to refer to this varaible in another procedure I get an "undefined variable" messgage when attempting to translate.

Can anyone help?
Reply With Quote

  #2  
Old 17-06-2005, 08:30 AM
kitebuggy kitebuggy is offline
Registered User
 
Join Date: May 2005
Location: Cambridge, UK
Posts: 4
kitebuggy is on a distinguished road
Declared externals.

Hi Liam,

My guess is that you have added "DECLARE EXTERNAL" to the top of your program, hoping to catch undefined variables and procedures at translate-time rather than run-time.

The only problem with this approach is that you have to then declare each variable to the parser, using "EXTERNAL <variable>".

See the OPL Wiki definitions for these commands:

http://www.allaboutopl.com/wiki/OPLWikiHome


I hope this helps.

Jason
Reply With Quote
Ads
Reply

Bookmarks

Tags
global, variables

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to perform global search on device? hduty Nokia 6630, 6680, 6681 and 6682 1 06-08-2006 02:38 PM
How can I global reset the 7610 ? hauntedtoo Nokia 7610 and 6670 3 30-09-2004 07:12 PM
Global Mobile Operator Database headshox Nokia 3650, 3660, and 3620 0 31-03-2003 02:12 PM



All times are GMT. The time now is 04:32 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy