Hi Maxweell,
Thinking about this problem I notice, as we say in Brasil, "The hole in more deep".
Ok, if you turn off your palm and application do
not start validation I can't to ensure the user will press on/off switch. He can press
hotsynch press.
I have a main application and another to send data by modem/ftp. If I start data send
program with an incomplete record I'll send
corrupted data to server.
My solution:
I have a parameters table in my application and inserted two fields "what is
processing" and "record position"
When my communication program starts it check these fields and show "You have a
incomplete transaction in main application, finish
it and try again".
When my main program starts it checks these fields and show correct form positioning
it in correct record.
Cheers
Roberto Amorim
Sorry my bad english
Gavin Maxwell wrote:
> Roberto,
>
> With SatForms the OnValidate script runs whenever a form is about to close.
> That includes switching to another form, and switching to another
> application. However, turning the device off will not fire the OnValidate
> script, from memory. It's been a while since I last looked at SatForms to be
> honest...! I actually picked up a copy of my book to answer this, and
> realised it has no mention of the OnValidate script! Oops... :-)
>
> FYI, this particular dicussion group is targeted towards developers using
> the C API. There are a few forums where you'll get better SatForms-oriented
> answers. Check here
> http://www.pumatech.com/support/techsupp/sf/tech_support.html
>
> Cheers,
> Gavin.
>
> -----Original Message-----
> From: Roberto Amorim [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 6:36 AM
> To: Palm Developer Forum
> Subject: Validating turn off in Sat Forms
>
> Hi
> I would like validate data in a form only when the user is changing to
> another application. When palm is turned off (auto-off feature) I want
> do nothing.
> How could I know what is starting my OnValidade script?
> TIA
> Roberto Amorim
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/