Hi Darrell,
>I have a method that creates a cursor and populates a listbox.
>The columnwidths and columncount are set in design mode.
>In the method that creates the cursor I set the rowsourcetype = 6 and therowsourcetype to something like rowsourcetype = "temp.field1,field2,field3,etc...". On very rare occasions (only in development mode so far) I receive a syntax error on the line setting the rowsourcetype. This line of code is syntactically correct but for some bizarre reason vfp randomly decides it is wrong.
>There does not seem to be a pattern to when this error crops up. Does anyone
know what the problem with this is or had a similar experience?
I'm sure you are actually changing the RowSource, not the RowSourceType, right? <G>
With a dynamic RowSource, the procedure I use is as follows:
with lstExample
.RowSourceType = 0
"Populate cursor"
.RowSource = "temp.field1,field2,etc"
.RowSourceType = 6
.ReQuery()
endwith
I've had trouble when I didn't toggle the RowSourceType.
HTH,
Bill Armbrecht
VFP MCP