Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and empty table
Message
From
02/01/1998 07:49:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/01/1998 21:00:41
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00068623
Message ID:
00068862
Views:
36
>>>Hi,
>>>
>>>I have been using grids and tables very much, but i have one problem:
>>>One of my grids appears blank (only border, no lines inside) while my table has no records. It works well only when i add one record from the command line.
>>>This is the first time it happens.
>>>The main proprties are: RecordSourceType 1. Alias
>>> RecordSource Mytable
>>>What do i have to do?
>>>
>>>Thanks
>>>
>>>Juan Carlos
>>
>>You could use in the grid.when event :
>>
>>if eof()
>> append blank
>>endif
>>
>
>Would this work if the table, instead of empty, has only deleted records?
Yes. It doesn't work with something like reccount(). It considers there could be filter, deleted recs etc. This is the way I use in my child tables with allowaddnew=.t. Since allowaddnew requires at least one record to exist. With set deleted on this adds a new record to child on entry and if the grid loses focus without any entry you could tablerevert checking it in grid.valid.
Ç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