Solved

emul68kcommon.c, Line:1642, Index out of range

Posted on 2008-06-11
2
243 Views
Last Modified: 2013-12-27
Hi,

I'm getting the subject error when I have the lines uncommented:

FieldType *objectPtr;
objectPtr=FrmGetObjectPtr(activeForm, FormMainFieldTEST);

Help would be appreciated,
Thanks,
Uni.
/***********************************************************************

Handles all event associated for the main form.

***********************************************************************/

Boolean mainFormEventHandler(EventType* aEvent){

	

	//Check if we need to initialise the form.

	if(aEvent->eType==frmOpenEvent){

		FrmDrawForm(FrmGetActiveForm());

		initialiseMainForm();

		return true;

	}
 

	//Check if the event was a menu event.

	if(aEvent->eType==menuEvent)

		return mainFormMenuEventHandler(aEvent->data.menu.itemID);

		

	return false;

}

/**********************************************************************/
 
 

/***********************************************************************

Initialises anything on the main form.

***********************************************************************/

Boolean initialiseMainForm(){
 

	FormType *activeForm;

	//FieldType *objectPtr;

	

	activeForm=FrmGetActiveForm();

	//objectPtr=FrmGetObjectPtr(activeForm, FormMainFieldTEST);

		

	return true;

}

/**********************************************************************/

Open in new window

0
Comment
Question by:Unimatrix_001
2 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 21758944
well, FrmGetObjectPtr() takes object index, not ID, so you should call it like that:

objectPtr=FrmGetObjectPtr(activeForm, FrmGEtObjectIndex(activeForm,FormMainFieldTEST));
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 21758962
:) Thank you...
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now