Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlighter Class
Message
 
 
À
04/01/2001 08:27:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00458827
Message ID:
00459292
Vues:
23
>Hi,
> I place the following code in textbox.interactivechange event. It cause ERROR "Function arguement value, type or count is invalid" if i issue mygrid.SETFOCUS or .REFRESH
>
>
>
>SELECT myMember
>
>WITH THISFORM
>	IF .cboSOption.VALUE = "Partial Name"
>		SET FILTER TO LIKE("*" + ALLTRIM(THIS.VALUE) + "*", MyMember.E_Name)
>*		.LOCKSCREEN = .T.
>*		.GRIDHIGHLIGHTER1.INIT()
>*		.LOCKSCREEN = .F.
>	ELSE
>		SEEK(ALLTRIM(THIS.VALUE))
>	ENDIF
>
>	.grdMembers.SETFOCUS
>
>	THIS.SETFOCUS
>ENDWITH
>
>
>Any ideas?


A filter expression gets evaluated not at time when you issue SET FILTER but when attempt is made to move record pointer in a table. At this time THIS.Value cannot be resolved anymore.
The code below should fix the problem:
lcLikeExpr = ["*] + ALLTRIM(THIS.VALUE) + [*"]
SET FILTER TO LIKE(&lcLikeExpr, MyMember.E_Name)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform