Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
10 - syntax error (listbox)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00300942
Message ID:
00300958
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform