Simply put, you can use MemberData for this purpose.
For example, you have two attributes: test and testdesc. then, you can write the following script through MemberData Editor:
If Aselobj(LoSelobj) = 0
Aselobj(LoSelobj, 1)
Endif
If LoSelobj[1].Test = 1
LoSelobj[1].Test = 2...
Public oform1
oform1=Newobject("form1")
If Vartype(oForm1) = "O"
oform1.Show
EndIf
Return
*
Define Class form1 As Form
DoCreate = .T.
Caption = "Form1"
lload = .F.
Name = "Form1"
Add Object command1 As myCommand With ;
Top = 24, ;
Left = 12, ...
What I've described is not outdated and simply requires the DynamicCurrentControl property to be used again.
It's something like this:
With Grid
With .Column1
.DynamicCurrentControl = "iif(Recno() = 1, "myImage", "myCombo")"
EndWith
EndWith
An example of this technique...
You want each current control in a separate column to use its own data source if I understand you correctly.
There are usually two ways to accomplish this:
1 Use the dynamic properties of Column;
2 Using the control's BackStyle_Access method.
I usually use the second method because it's easier...
Chriss,
Whether you define the SelectCMD property or add any code to BeforeCursorFill/BeforeCursorRefresh, it is normal just in the normal case.
But once CursorRefresh is executed in a VFP transaction, everything becomes unbelievable and the correct result is not obtained.
Hi, Chriss
Description from the help:(https://www.vfphelp.com/help/_5wn12pnzp.htm):
Visual FoxPro stores the value changes, which are used by CursorFill. The CursorRefresh method uses the value of the SelectCmd parameter, not the SelectCmd property. This facilitates construction of custom...
Hi, Chriss
Whether I change parameter and do CursorFill or CursorRefresh, I get another record, when changing my parameter value.
This is exactly the result I need. And, I didn't get any errors.
Hi, Chriss
Thank you very much for your insights.
As of now, CursorFill is the most efficient approach and is the most likely way to refresh data in a VFP transaction. I can solve the other problems caused by this relatively easily (typically, Child are represented on the UI, usually in a...
Hi, Chriss
Thank you very much for your quick reply!
The lengthy narrative above is just a replication of the application scenarios I've encountered as best as I can. In fact, we can simply reproduce the problem(This just indicates the logic, the code itself may not be feasible to run)...
Hi,everyone
I am a newbie in terms of using CursorAdapter. My development environment is VFP9 SP2 7423 . I am having a very confusing problem.
I have a document entry UI with a parent-child table structure. The child table needs to display the record corresponding to the parent table when the...
Your understanding is not entirely correct, although it is in line with your observations.
They are in TAB order at the same container level, in fact.
You can see the order of the list as you want it to be if you change the control's Tabindex property.
Of course, you can achieve the same goal...
Chriss,
Thank you very much for testing!
At least that validates my guess. This solves most problems with pages. As for using different page classes in a pageframe, at least we bought some more time to get the problem out of the way once and for all.
Hi, Chris
Thank you very much for your detailed discussion. And it's right.
I have an unproven idea that we should be able to programmatically change scx because it's DBF.
This should make it easier to replace the base class with a custom class if we have a "tool".
I will consider whether to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.