Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Height
Message
From
18/10/2001 03:53:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/10/2001 21:52:31
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00569437
Message ID:
00570094
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform