Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop in GRID when AfterRowColChange
Message
De
25/01/2007 09:01:37
 
 
À
25/01/2007 04:51:46
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01187615
Message ID:
01189115
Vues:
16
>Hello Edward
>thanks for your reply, but i have a doubt
>first:
>where in my code i must apply "Column.Control.Lostfocus or Column.Control.Interactivechange events"
>because i only can make these event on runtime not in design mode.
>also i have another code to capture the position of the active column in the grid and hide them with the event before form init:
>
>STORE "" TO clname
>FOR EACH myform IN _Screen.forms
>IF UPPER(myform.name)="SBO"
>WITH myform.Pageframe1.Page1.Cont1.Grid1
>FOR i=1 TO .columnCount
>IF UPPER(.Columns(i).ControlSource)="BI.EDEBITO"
>clname=.Columns(i).name
>.RemoveObject(clname)----(a)
>exit
>ENDIF
>NEXT i
>EXIT
>ENDWITH
>ENDIF
>NEXT myform
>
I don't think this code may work all time. Could you change it to following:
For each oForm in _screen.forms
  IF not UPPER(oForm.name)=="SBO"
    Loop
  Endif
  WITH oForm.Pageframe1.Page1.Cont1.Grid1
    For each oColumn in .columns
      IF not UPPER(oColumn.ControlSource)=="BI.EDEBITO"
        loop
      Endif
      .RemoveObject(oColumn.name)
      Exit
    Endfor
  Endwith
  Exit
Endfor
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform