Search found 72 matches
- Mon Feb 03, 2025 6:53 pm
- Forum: Product
- Topic: Combobox to update DBF
- Replies: 8
- Views: 450
Re: Combobox to update DBF
The following should display the values. Please read the code comments:
// set up ComboBox with KeyValuePair list. This is much cleaner
LOCAL genderList AS list<KeyValuePair<STRING, STRING>>
genderList := list<KeyValuePair<STRING, STRING>>{}
genderList:Add(KeyValuePair<STRING, STRING>{"M ...
- Sun Feb 02, 2025 10:11 pm
- Forum: Product
- Topic: Combobox to update DBF
- Replies: 8
- Views: 450
Re: Combobox to update DBF
Set the combobox value using SelectedValue
SELF:cbGender:DisplayMember := "Value"
SELF:cbGender:ValueMember := "Key"
SELF:cbGender:SelectedValue := ("Text", bindingSourceBFMB,"GENDER") // This line
Thanks Jamal, that does improve the drop down list, but the text box is still not ...
- Fri Jan 31, 2025 10:30 pm
- Forum: Product
- Topic: Combobox to update DBF
- Replies: 8
- Views: 450
Re: Combobox to update DBF
A sample working project that shows what you tried would help get you answers. It is not clear what data controls you are using and events are being utilized.
Aside from the above, hopefully someone familiar with Harbour would jump in since I have it used it, however, in .NET, I guess the ...
- Fri Jan 31, 2025 10:16 pm
- Forum: Product
- Topic: Combobox to update DBF
- Replies: 8
- Views: 450
Re: Combobox to update DBF
I created a very simple project to highlight the issue I’m having which is linking a Combobox to a column in a DBF table. The goal is to have the Combobox show the long-form of gender, but the table only has the single character (“F”,”M”,” “).
On the form, you have the navigator bar, the “Name ...
On the form, you have the navigator bar, the “Name ...
- Wed Jan 29, 2025 11:09 pm
- Forum: Product
- Topic: Combobox to update DBF
- Replies: 8
- Views: 450
Combobox to update DBF
Hi everyone,
I’ve been beating myself up for days now trying to get this to work – no luck.
On a Form, I’m trying to implement a combobox for gender, let’s say with 3 options: “Male”, “Female” and blank.
I would like to tie this combobox directly to a gender field in a DBF so that :
a) the ...
I’ve been beating myself up for days now trying to get this to work – no luck.
On a Form, I’m trying to implement a combobox for gender, let’s say with 3 options: “Male”, “Female” and blank.
I would like to tie this combobox directly to a gender field in a DBF so that :
a) the ...
- Mon May 06, 2024 12:32 am
- Forum: Product
- Topic: Shared class library
- Replies: 2
- Views: 678
Shared class library
Hi all,
I have something you'll no doubt be able to help me with:
Goal : create a Class shared by a dozen or so projects (the Class provides the functionality to create reports in HTML format).
Question : how to accomplish this (I use the Harbor dialect). I see there are class templates, but ...
I have something you'll no doubt be able to help me with:
Goal : create a Class shared by a dozen or so projects (the Class provides the functionality to create reports in HTML format).
Question : how to accomplish this (I use the Harbor dialect). I see there are class templates, but ...
- Tue Apr 23, 2024 3:05 pm
- Forum: Product
- Topic: Open DBF’s not visible in BackgroundWorker second thread.
- Replies: 9
- Views: 1463
Re: Open DBF’s not visible in BackgroundWorker second thread.
Hi Roland,
I would suggest that you move your calculation function to a second thread without being tied to the currently open workareas of the main thread. That is, in the second thread you will re-open all the files you need for the calculation in shared mode + read-only (just for productivity ...
- Tue Apr 23, 2024 2:56 pm
- Forum: Product
- Topic: Open DBF’s not visible in BackgroundWorker second thread.
- Replies: 9
- Views: 1463
Re: Open DBF’s not visible in BackgroundWorker second thread.
Guys,
You can indeed (with some programming) access the open DBFs in other threads.
But I would not recommend it, especially when indexes or filters are involved: the macro compiler is used to evaluate expressions and these expressions are evaluated in the context of the "current" area.
If you ...
- Mon Apr 22, 2024 10:39 pm
- Forum: Product
- Topic: Open DBF’s not visible in BackgroundWorker second thread.
- Replies: 9
- Views: 1463
Re: Open DBF’s not visible in BackgroundWorker second thread.
Thanks Wolfgang, I had read somewhere that this is quite time-consuming. I'll give it a try. I already disable all but the 'Stop' button ... which I intended to use for just that.
Cheers.
Cheers.
- Mon Apr 22, 2024 7:22 pm
- Forum: Product
- Topic: Open DBF’s not visible in BackgroundWorker second thread.
- Replies: 9
- Views: 1463
Re: Open DBF’s not visible in BackgroundWorker second thread.
Thanks Wolfgang,
I thought that might be it; I had tested public global variables and they ARE visible in the second thread. Is there anything else that is not 'visible' or accessible in a second (or more) thread that you might know of?
Cheers
Roland
I thought that might be it; I had tested public global variables and they ARE visible in the second thread. Is there anything else that is not 'visible' or accessible in a second (or more) thread that you might know of?
Cheers
Roland