In my main form I use this code to open another form with a field on it
static Boolean frmMain_cmdHistory_OnSelect(EventPtr event)
{
// IF I USE THIS CODE
..............................................................................
FieldType *field1=NULL;
MemHandle textH;
Char *textP=NULL;
FormType *formNew=NULL;
UInt16 action;
formNew= FrmInitForm (frmHistory);
//if couldn't initialize form then bail out
if (!formNew) return -1;
//if (formNew) return -1;
field1 = FrmGetObjectPtr (formNew, FrmGetObjectIndex (formNew, fldHistory));
FldFreeMemory(field1);
FldSetTextHandle (field1 , NULL);
textH=MemHandleNew(StrLen(History)+2);
textP=MemHandleLock(textH);
StrCopy(textP,History);
MemHandleUnlock(textH);
FldSetTextHandle (field1 , textH);
action=FrmDoDialog(formNew);
FrmDeleteForm (formNew);
return action;
return true;
...................................... the scroll bar on the form will not
work
*/
// IF I UDE THIS CODE
FrmPopupForm(frmHistory);
................... then the scrollbar will work
}
How can I fix the first code that opens the form and inserts the string data
from the record
into the the field to operate the scroll bar correctly
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on,
when.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/