specifically in coding the menu? child-parent windows? or naa bay tutorials nga available sa net? i've tried some tutorials sa net pro dli mn jpn helpful ky libog kaau..
so pls help! thank u daan!
specifically in coding the menu? child-parent windows? or naa bay tutorials nga available sa net? i've tried some tutorials sa net pro dli mn jpn helpful ky libog kaau..
so pls help! thank u daan!
what is your problem? i may be able to help you.
sa tnuod dghan ko problems aning foxpro especially in coding the menu.. iv tryd many options na pro libog mn gud ky dghan mn keywords na dli ilhon sa menu lyk thisform
pls help.. iv used foxpro for 2 yrs na cguro pro krn pmn gd ko kasulay gamit ug menu.. i dnt even knw hw to disable the menu if for example restricted ang user ana..
maybe u cud PM me.. pwd jpn txt2x ta wyl gabuhat kos project nko. thanks kaau..
unsa version sa foxpro imo ginagamit?
sa visual foxpro, naa na siya menu designer nya pwede na ka ka-add dinha og imo mga menu items. no need to code sa "DEFINE PAD", "DEFINE BAR", og uban pa.
ang ThisForm nagreference na siya kung unsa ang current na form object sa usa ka class definition or sa event code.Â* For example, sa imo na form FrmSample naa na siya command button CmdOk og textbox TxtName.Â* So kung sa imo Cmd.Click naa ka code na
=messagebox(ThisForm.TxtName.Value)
ig-padagan nimo sa imo form ana nya input ka og value sa imo TxtName then click nimo ang CmdOk, mogawas ang message box with the value from TxtName. Dili na ka kinahanglanmo hinomdom kung unsa ang imo Form name.
Ok gamiton ang This para pag-refer sa object labi na kung nagbuhat ka og class.
Taken from Microsoft Visual FoxPro 9.0 Laguage Reference....
"Using THIS instead of explicitly referring to the current object by name (for example, thisform.command1.caption) makes program code portable between objects, because it avoids the object's name, and automatically encapsulates the object's parent class."
"THIS also allows you to reference a property or an object in a class definition. Methods in a class definition block can use THIS to specify a property or object that will exist when the class is created."
"Because multiple instances of objects share the same method code, THIS always refers to the instance in which the code is executing. If there are multiple instances of an object, and one of the object's methods is called, THIS refers to the correct object."
hope this helps.
been using visual foxpro for more than 6 years :mrgreen:
ako karon pako ana kay nag migrate man ko og language... VB man gud ko mao na nag hinay2x pako og practice anang FOXPRO karon..
@biggie9385:
thanks sa pg rply.. anyway, dli mn kana akong gi mean.. akong pasabot is, unsaon pgbutang ug codes for the menu ba... dba mghimo mn ta una sa menu designer... dn for evry menu mgpili ta whether its a command, procedure, submenu, or bar.. how mn to put codes to a menu para mahimo niya silbi nga function? just like for example:
if i have a menu nga ADD, asa ko mgbutang ug codes para nga kada click sa ADD, moperform ang iyang function? saona ngthink ko nga dd2 sa procedure ko mgsulat ug codes pero dghan mn cya dli i.recognize mga keywords.. saon mn na?
tapos naa pkoy isa ka prob, saon mn pgdisable sa menu if in case ang nakalogin nga user is restricted to perform an operation such as adding a record?
pls, pls, pls help.. thank you.
Similar Threads |
|