🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.vdbase.forms
2 messages
2 total messages Started by Fabrice VANLOOT Tue, 16 Mar 1999 00:00
lost focus in a form
#113
Author: Fabrice VANLOOT
Date: Tue, 16 Mar 1999 00:00
35 lines
2009 bytes
Hello !
I lose the focus in my form when I navigate into a tabbox object.
My form contains seven pages and a table containing 200 fields.
Here is a part of code in my procedure :
Procedure ONGLET1_OnSelChange
   form.RefreshAlways = .F.
   form.PageNo = this.CurSel+1
   do case
        case form.Onglet1.CurSel = 1 .or. form.Onglet1.CurSel = 2 .or.
form.Onglet1.CurSel = 3
                 if gesopaf->refrepre = "R" .and. ltrim(rtrim(gesopaf->c06))
<> "REPRENEURS"
                    InformationMessage(FormatStr("le Dossier NīŋŊ " +
gesopaf->ref + " est un repreneur "),;
                                "Info")
                    form.Onglet1.CurSel = Jeviensde
                   Jeviensde = form.Onglet1.CurSel
                   return
               endif
         case form.Onglet1.CurSel = 5 .or. form.Onglet1.CurSel = 6   &&&
Page 6 ou Page 7
                  if gesopaf->refrepre <> "R"
                     InformationMessage(FormatStr("le Dossier NīŋŊ " +
gesopaf->ref + " n'est pas un repreneur "),;
                                    "Info")
                     form.Onglet1.CurSel = Jeviensde
                    Jeviensde = form.Onglet1.CurSel
                    return
               endif
   endcase
   Jeviensde = form.Onglet1.CurSel
When I click on the tabbox, the choice is good but the page doesn't change
and I lost the focus into the tabbox and any objects in my form.
Anybody can help me ?
Thank you.
Re: lost focus in a form
#115
Author: Gary White
Date: Tue, 16 Mar 1999 00:00
11 lines
713 bytes
On Tue, 16 Mar 1999 14:17:32 +0100, Fabrice VANLOOT wrote:

> Hello !

Please don't post the same question to multiple groups.


Gary White

Some dBASE Stuff at
http://www.AppTools.com/dbase
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads