Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlighter Class
Message
 
 
À
04/01/2001 09:51:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00458827
Message ID:
00459367
Vues:
31
Hi John,

May be unrelated observation, but it just caught my attention: Why do you call GridHighlither1.Init() from some other methods. AFAIK, you don't have to call Init somewhere, it's called once automatically, then your control is instantiated. If you do it in your code, I'm afraid, you break the event consequences...

>Hi,
> Sorri, I got another problem here. Any thing go wrong with the code below?
>The code will be called in my SEARCHFORM.INIT(). It cause INVALID EXPRESSION DYNAMICBACKCOLOR if I launch my SEARCHFORM, I run a report and launch the SEARCH FORM AGAIN!!!
>
>Thank you
>
>
>
>LPARAMETER tcCardType
>
>THIS.grdMembers.RECORDSOURCE = ""
>
>SELECT Card_No, E_Name, IC_No, DELETED() AS lDeleted;
>FROM Member NOFILTER ;
>WHERE LEFT(Card_No, 3) = tcCardType ;
>INTO CURSOR myMember
>
>IF _TALLY > 0
>	WITH THIS
>		.ShowList("Card_No")
>		.grdMembers.RECORDSOURCE = "myMember"
>	ENDWITH
>ENDIF
>
>WITH THIS
>	.GRIDHIGHLIGHTER1.Init()
>	.RefreshGrid()
>	.grdMembers.SETFOCUS
>	.txtKeyword.SETFOCUS
>ENDWITH
>
>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform