Can not seem to figure this out or I am missing something
Could someone help me out on this
Should work..
Thanks
Comment and Location Are Char Strings thare are populated from a form field
static Boolean frmMain_fldComment_OnfldEnter(EventPtr event) // taps a field
with
// text
to large to see in the small field
{
PopupNewView(Comment);
return true;
{
static Boolean frmMain_fldLocation_OnfldEnter(EventPtr event)
{
PopupNewView(Location);
return true;
}
Err PopupNewView(Char *Varistring)
{
FieldType *field1=NULL;
MemHandle textH;
Char *textP=NULL;
FormType *formNew=NULL;
UInt16 action;
Char varistring[255];
formNew= FrmInitForm (frmExtended);
if (!formNew) return -1;
field1 = FrmGetObjectPtr (formNew, FrmGetObjectIndex (formNew, fldView));
FldFreeMemory(field1);
FldSetTextHandle (field1 , NULL);
textH=MemHandleNew(StrLen(Varistring)+2);
textP=MemHandleLock(textH);
StrCopy(textP,Varistring);
MemHandleUnlock(textH);
FldSetTextHandle (field1 , textH);
action=FrmDoDialog(formNew);
FrmDeleteForm (formNew);
}
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/