Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Height
Message
De
18/10/2001 03:53:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/10/2001 21:52:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00569437
Message ID:
00570094
Vues:
23
>Sorry , I don't know what I am doing wrong :
>
>
>IF THISFORM.grid1.Height = 100
> THISFORM.grid1.Height = 10 <- program stop here
>ELSE
> THISFORM.grid1.Height = 100
>ENDIF
>
>
>VFP7 prompt me error message :
>
>error with grid1 - height : Expression evaluated to an illegal value.
>
>
>What wrong with my program? Try out whole day.... :(
>
>
>TIA.

Teo,
Grid.Height cannot be under 19. Sounds like your grid don't have scrollbars. Are you trying to show only header (if it has) or hide grid ?
with thisform.Grid1
  if .Height = 100
     .Height = max(19, iif(.Headerheight=0,.RowHeight,.HeaderHeight))
  else
     .Height = 100
  endif
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform