Questions tagged [findfirst]
55 questions
0
votes
3 answers
Am I misunderstanding find_first_not_of?
Consider the following program:
#include
#include
int main() {
std::string token {"abc"};
const char* option_name_valid_chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
…

einpoklum
- 118,144
- 57
- 340
- 684
0
votes
0 answers
How do I change the record my data entry form is entering to
Hi I am very new to vba and microsoft access. I have a data entry form with 3 comboboxes and a date box that save to the Shift, Operator, Date_Field and Machine fields of the Tracking table. These four fields are a unique index. I want the form to…

zeppefin25
- 11
- 2
0
votes
2 answers
How to properly use the combination of .map and .orElseGet within stream API?
I have the following code:
private List findUsers(...) {
...
return usersData.stream() //userData is another list of objects
.findFirst()
.map(this::getCode)
.map(code-> {
if (...) {
…

Peters_
- 597
- 2
- 8
- 28
0
votes
1 answer
Recordset FindFirst in an Array
I am using Access to run VBA code. I have an array that runs through a recordset query "rstQueryTrainings". In this query, there are multiple rows per ID. What I would like this array to do is be able to identify if a row contains the first unique…
0
votes
1 answer
Linking a report to a subform
I have a main report (Projects Overview) which I am trying to create an OnClick event which will take me from the report to the field where that piece of information is entered on a form (LiveJobs).
My problem is that there is a subform (Estimate…
0
votes
2 answers
FindFirst Syntax Error with date criteria
I have following lines in VBA Access, but I receive Syntax Error by FindFirst and I don't understand why.
criteria = "[HolidayDate] = " & "#" & myDate & "#"
rst.FindFirst (criteria)
If rst.NoMatch Then
count = count + 1
End If

Silvia
- 9
- 2
0
votes
1 answer
Getting NoSuchElementException when doing filter findFirst
I keep on getting 'java.util.NoSuchElementException: No value present' when executing filter findFirst.
I can't change the code much as it will break other part of code and we dont want to write method logic inside filter.
Code give is below.
--- I…

Rahul
- 95
- 1
- 3
- 14
0
votes
1 answer
How to use FindFirst Function to compare 2 in-memory record-set?
I want to loop through Column A and check if any of the values exist in Column B. I am currently using the .Find function however when I started dealing with large sets of rows (>60 000), it started taking a long time to run the code.
I thought I…

Aurax22
- 111
- 3
- 13
0
votes
1 answer
Access VBA NoMatch = True when I think NoMatch should be False, Where am I going wrong?
Through various kind souls @jericho johnson, and others. I have VBA code that appears to be working. Except for one part. The final 'Else' condition, "Do While Not StrSQL1.NoMatch". It always equals true. Even if the value being referenced in…

rgorowsky
- 105
- 1
- 12
0
votes
5 answers
Getting the index of the leftmost active bit in an integer instantly
How would I scan an integer (in binary) from left to right instead of right to left? I know that I can start from the left and try every bit, and then record the leftmost bit, but is there a faster way? Is there a built-in function that can…

NL628
- 418
- 6
- 21
0
votes
0 answers
FindFirst / FindNext finding incorrect files found
I am coding in Borland C++Builder 6. In several of my applications I am using the following function to locate files on our network:
String sRootDir="N:\\";
String sClmNbr="748000";
TSearchRec fnd1;
if…
0
votes
2 answers
FindFirst and question mark
I need to delete all files, which names are started with "a", then three arbitrary letters and ".txt" extension like "a123.txt". Here is the code:
var
sFileMask: string;
tsrMessage: TSearchRec;
begin
sFileMask := 'c:/a???.txt';
if…

Molochnik
- 704
- 5
- 23
0
votes
0 answers
windows.h How to use FindFirstFile() and FindNextFile() to list all files in a directory?
I'm writing an app in Qt and trying to use the windows functions FindFirstFile and FindNextFile in order to speed up counting large numbers of files in several directories. I've copied this code almost verbatum off the microsoft site in order to…

Robbie Cooper
- 483
- 2
- 5
- 13
0
votes
1 answer
Phalcon ORM doesn't work
I am learning phalcon. I have some problems with models.
Function FindFirst returns nothing, also it doesn't show any errors or exceptions. Here is my code:
public function indexAction()
{
$user = Users::findFirst(1);
var_dump($user);
}
And…

TheTK95
- 1
0
votes
1 answer
Delphi scanning for database directories using multi threading
I need to scan drives for directories containing my database files to add them to the BDE paths.
How can I make my code do it faster using threads?
I'm using delphi 2007, so omniThread is not supported.
I need to know how to make the thread, and how…

user1349751
- 81
- 1
- 6