Solved

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

Posted on 2008-06-11
2
246 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 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

23 Experts available now in Live!

Get 1:1 Help Now