Jordon Marshall wrote:
		FldSetInsPtPosition(GetObjectPtr(StoreCheckAcctField),0);
		FrmSetFocus(FrmGetActiveForm(),StoreCheckAcctField);
		FldGrabFocus(GetObjectPtr(StoreCheckAcctField));
		SetFieldText( StoreCheckAcctField, "-LOWES", 79, true );
1. The problem could be in your SetFieldText() function. If that is a standard function I'm not familiar with it.
2. Also, if it's an empty field, you don't need the FldSetInsPtPosition() function.
3. FrmSetFocus() and FldGrabFocus() are reduntant. Also, a field doesn't need to have focus for you to set its text.
4. Setting text in a field is a hassle and takes several lines of code almost no matter how you do it. Save yourself a ton of time and write a generic function to set the field text in one line. It looks like you're already doing this but don't have it quite right. Ken Corey (kcorey) posted an example of how to do this yesterday and I would recommend using that or some version of it.

matt


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


Reply via email to