hi,
Can anyone help me on this issue quickly?
I created a DiDialog Form and controls dynamically.
And then if i try to get form id or field id, it
doesn't return proper FormID or Field ID to me.
For example,
#define TestForm 1000
#define TestField 1002
............................
............................
pFrm = FrmNewForm (TestForm,....)
CtlNewControl(..,...);
FldNewField(...,TesField, ...);
FrmSetEventHandler(..TestFormHandleEvent);
buttonID = FrmDoDialog(pFrmP);
.............................
.............................
FrmEraseForm(pFrm);
FrmDeleteForm(pFrm);
.............................
TestFormHandleEvent(Eventype eventP);
{
FormPtr frmP = FrmGetActiveForm();
switch (eventP->eType)
{
case keyDownEvent:
UInt16 frmID = FrmGetFormId(frmP);
-----------------------------------
Gives wrond FormID when i launch my DoDialog
Form
-----------------------------------
FieldPtr fldP = FrmGetActiveField(frmP); FieldPtr
fieldP = (FieldPtr)FrmGetObjectPtr
(frmP, FrmGetObjectIndex(frmP,1002));
-----------------------------------
Device crashes here when my DoDialog which
has a Field, is getting launched...
if ( fldP==fieldP )
{
}
-----------------------------------
break;
}
}
Can anyone please help why am i not getting FormID and
FieldID properly when i'm trying this way? I did even
try doing FrmInitForm(..) too before
FrmSetEventHandler, but still has the problem?
cathy.
Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/