Hello,
FrmDodialog works in the sense that it only pops a form and waits until a
user hits a control, then closes, returning the id of the tapped control. at
that point, the field contents, and all form memory is wiped out.
Stick with FrmPopupForm.... Works better and more functional. Do all the
Field init in that form's handler. (In the FrmOpen event.)
On 9/6/07, asterof nighthawk <[EMAIL PROTECTED]> wrote:
>
>
> 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
> <http://us.rd.yahoo.com/evt=47093/*http://tv.yahoo.com/collections/222>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/
>
>
--
/*PhreakOnALeash*/
WELCOME TO THE DISCLAIMER!
Please, protect your family.
This mail contains explicit depictions
Of things which are real.
These real things are commonly known as life.
So, if it sounds sarcastic, don't take it seriously.
If it sounds dangerous,
Do not try this at home or at all.
And if it offends you, just don't listen to it.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/