Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide cursor in grids textbox
Message
From
15/08/2001 09:25:56
 
 
To
15/08/2001 09:00:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00543966
Message ID:
00544020
Views:
21
Hello Cetin

didn't function at first

cause in the init of grid was:

with this
.recordsource = ""
.columncount = -1
.columncount=fcount(lcAliasName)-3
.recordsource = lcAliasName
for ix=1 to .columncount
with .columns(ix)
.controlsource = lcAliasName+"."+field(ix)
....
endwith

so i added a property "nrofwantedfields" to gridclass and changed code to:
with this
.recordsource = ""
.columncount = -1
IF .nrofwantedfields = 0
.columncount=fcount(lcAliasName)-3
ELSE
.columncount= .nrofwantedfields
ENDIF
.recordsource = lcAliasName
for ix=1 to .columncount
with .columns(ix)
.controlsource = lcAliasName+"."+field(ix)
...
endwith


works just fine ..

thx for the help


Christian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform