Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select (lcCursor) not selecting cursor???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00346906
Message ID:
00347207
Vues:
25
>	lcCursor=SYS(2015)
>	lnSelect=SELECT()
>	
>	Create Cursor (lcCursor) (cTitle c(100), cSubject c(100), cPrintData m)
>
>	lcCaption=toCurrentForm.Caption
>	lcTitle=AllTrim(Left(lcCaption, At(':', lcCaption)-1))+" Notepad"
>	lcSubject=AllTrim(SubStr(lcCaption, RAt(':', lcCaption)+1))
>	Insert Into (lcCursor) Values (lcTitle, lcSubject, toCurrentForm.ActiveControl.Value)
>	Select (lcCursor)
>
>*? For some reason, at this point, the cursor is NOT selected so
>*? the report print statement displays an open dialogue box.
>*? The cursor was being selected in debug mode with set step on!
Is it possible that the that line is being read as SELECT(lcCursor) instead of SELECT (lcCursor)? Try SELECT &lcCursor and see if that clears things up for you.

And, as was said earlier, there's no reason to use lcCursor at all here. Call it 'fred' and be done with it. :-)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform