Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid not displaying even after the recordsource trick
Message
From
14/09/1999 07:33:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/09/1999 06:22:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00264196
Message ID:
00264365
Views:
22
>Hi Stefan
>
>>Try a simple thisform.refresh()
>>
>>This might help.
>
>already in the code, Doesn't seem to make the slightest difference
>
>here, take a look... this is the relevant click code:
>
>
>thisform.alwaysontop=.f. && allow the other form to appear on top
>thisform.jgrid.recordsource=''
>numrecs=reccount()
>do form journalentry
>thisform.alwaysontop=.t.
>thisform.jgrid.recordsource='Journal'
>if reccount()>numrecs && we must have added records
> thisform.journalsaved=.f.
> thisform.savebutton.enabled=.t.
> sum cred to thisform.totcredits
> sum deb to thisform.totdebits
>else
> thisform.savebutton.enabled=.f.
>endif
>if reccount()>2 and thisform.totdebits=thisform.totcredits
> thisform.acceptbutton.enabled=.t.
>endif
>*thisform.jgrid.init && feeble attempt at making the records display
>thisform.refresh
>
>
>The data is definitlely there. I can use the button to add and amend records and see their values in the form. But back at the grid, everything is clean as a whistle...
>
>Harry


Harry,
The other form's datasession ? Is it same as this one ?
BTW why reset recordsource to "Journal" ? Isn't it already "Journal" ? Also you can do both sum in one :
sum cred, deb to thisform.totcredits, thisform.totdebits
locate

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
Next
Reply
Map
View

Click here to load this message in the networking platform