Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Today Tips!
Message
De
23/03/1998 04:27:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Today Tips!
Divers
Thread ID:
00086315
Message ID:
00086315
Vues:
54
If we make a tip for everyday, everyone will really gain more!!
the only thing is the sysop select some useful message into FAQ...

^_^" For me, Today Tips:

For multiple forms, you may need to re-use the file again with
an used alias name....

e.g. use Item again in 0 alias SearchItem shared

In general case, you can create this alias for use!
But.... if for some unexpected reason, you may already define this
alias!!

To avoid this error, add some simple code:
Aused(UsedAlias)
IF ASCAN(USEALIAS, "SearchITEM") = 0
	USE ITEM AGAIN IN 0 ORDER TAG ITEMKEY ALIAS SearchITEM SHARED
ENDIF
Of cos, you can further express it, such as
if Flock() as exclusive check....
Dbf file() is exist or not....



using reobject and addobject to make the grid IME problem can
successful! Suppose you make a simple no_ime.vcx class lib.
and add one LOC on textbox txtnoime.gotfocus:

This.imemode = 2

But remember to add visible to .T. in code:
set classlib to no_ime.vcx additive
with this
	local i
	for i = 1 to .ColumnCount
		.Columns[i].RemoveObject("Text1")
		.Columns[i].AddObject("Txtnoime1", "txtnoime")
		.Columns[i].Txtnoime1.Visible = .T.
		.Columns[i].Sparse = .F.
	endfor
endwith
after replace the object!! else... nothing see.... >_<"
Hope useful to you!!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Répondre
Fil
Voir

Click here to load this message in the networking platform