Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.ColumnCount = 0.2 ??
Message
From
28/05/2004 15:40:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Grid.ColumnCount = 0.2 ??
Miscellaneous
Thread ID:
00908304
Message ID:
00908304
Views:
53
Hi All,

Never came across this before:

In the Destroy() event of a grid I have:
WITH THIS
  DIME GridLayout(.ColumnCount,2)
ENDWITH
which generated a 'subscript out of range' error. In an attempt to work out what was wrong I changed this to:
LOCAL NoCols
WITH THIS
  m.NoCols = .ColumnCount
  SET STEP ON
  DIME GridLayout(m.NoCols,2)
ENDWITH
At the break the debugger shows:
.ColumnCount = 3
m.NoCols = 0.2
Stepping the dimensioning line, needless to say, produces the same 'out of range' error. I've tried the same thing with a basic new form and grid and don't see this behaviour. Any clues as to what may be happening in this specific case?

TIA,
Viv
Next
Reply
Map
View

Click here to load this message in the networking platform