Skip to main content

Questions tagged [record]

A record in programming is a data type with labels to access fields of the record.

Filter by
Sorted by
Tagged with
2 votes
1 answer
158 views

I have created the following book dto: public record BookDto(string? Id, string Name, string Genre, string Author); Using linq, I select a book from my database ...
Friso's user avatar
  • 2,480
4 votes
1 answer
126 views

We have a web application with configuration supplied by an appsettings.json file. The configuration includes a collection of a custom type with nullable values. ...
Noah Orr's user avatar
Advice
1 vote
7 replies
123 views

Introduction Jep 401 will introduce "value classes" to the Java programming language. As such, they have no identity, as their inherent state completely describes what they are. The non-...
xtay2's user avatar
  • 1,016
3 votes
1 answer
107 views

I have encountered this strange behavior: ...
Luke Vo's user avatar
  • 21.7k
Best practices
1 vote
4 replies
130 views

If my record implements an interface, with a field accessor implicitly implementing a method, it should be an instance of what the @Override annotation is meant to ...
ice1000's user avatar
  • 6,619
Advice
0 votes
2 replies
66 views

I wanted to define a record type with a Static_Predicate: ...
tymurmchyk's user avatar
7 votes
1 answer
155 views

I stumbled upon something that got me curious. Apparently, serializing a record with a cyclic reference does not retain the cycle when deserializing it again, it becomes ...
Zabuzard's user avatar
  • 26.3k
0 votes
1 answer
79 views

I've written the next piece of code in order to declare a vector of lexical elements: ...
tymurmchyk's user avatar
0 votes
1 answer
93 views

I want to check to see if value from a form exists in Microsoft Access table using vba or macro that is user friendly but need help putting it together. I've tried, ...
Sue Clark's user avatar
1 vote
1 answer
97 views

I want the app to record the user's voice and send it to a CSV file (Google Sheets). I have it working for user input so far. In my "pubspec.yaml" file, I've defined the record, ...
Max Butler's user avatar
2 votes
1 answer
73 views

I would like to create a virtual record field "r" for the red component of a color using the Color package. This package uses a data family ...
141592653's user avatar
  • 804
2 votes
1 answer
152 views

I have this record: record Foo { string _bar = "initialized"; public string Bar => _bar; } I'm running the ...
Ivan Petrov's user avatar
  • 7,724
1 vote
1 answer
35 views

We are in the Groovy universe. Let's say I have a record like follows: record Person(String firstName, String lastName, String city) {} What is the shortest way to ...
Natasha's user avatar
  • 926
2 votes
3 answers
193 views

Let's say I have this: ...
John's user avatar
  • 855
1 vote
1 answer
85 views

I have the following SAS dataset, with a single columns called STAT (This field contains a series of values for each record): I need to create a new field called <...
Giampaolo Levorato's user avatar
1 vote
2 answers
182 views

I am a new to C# and .NET 9. I am trying to execute the following program I found from the official MS tutorial - Create record types ...
Mohamed's user avatar
  • 275
6 votes
1 answer
180 views

I want a procedure that does something like this: ...
Shaun Roselt's user avatar
  • 4,583
6 votes
1 answer
249 views

Given this declaration: type TRec = record FNr: integer; FName: string; constructor Create(ANr: integer); end; and this implementation of the ...
Anders G's user avatar
0 votes
3 answers
116 views

I have an array of any values, as well as data associated with each value. This data is stored as Record<string,FooData> where the key is generated using the ...
LeCarbonator's user avatar
5 votes
1 answer
187 views

Using TEqualityComparer<T>.Default for record types seems to "work" in some situations ("work" as in checking for value-equivalence across ...
easely's user avatar
  • 63
1 vote
0 answers
58 views

I don't understand why TAdsTable.Bof does not return True after a call to TAdsTable.AdsGotoTop. The question may seem stupid, ...
Ivan Yuzafatau's user avatar
1 vote
1 answer
141 views

I'm developing a .NET 8 WorkerService project where I load configuration from multiple sources (e.g., appsettings.json and ...
Christopher Fontaine's user avatar
1 vote
2 answers
442 views

I have the following record. But the collection cannot be null. Is there a way to default it to an empty list if it's null? ...
S.Dan's user avatar
  • 1,940
0 votes
0 answers
21 views

I want to save 5+ waves which is in different sizes and different sample times using the RT-lab opwritefile block. But the max RT-lab opwritefile group number is only 5. max opwritefile group number ...
paul Jiang's user avatar
1 vote
1 answer
290 views

I am using SpringBoot 3.4.2 (latest as of right now) I can create RESTful controllers that access the Service, and then we make a Repository call to get data from the database which all works 100%. ...
tjholmes66's user avatar
  • 2,040
0 votes
2 answers
259 views

I don't understand why the authors of Dart defined fields of record instance as 'final'. I think, that Record concept is convenient shortcut to create typical class. But fields in class don't have to ...
Voldemort's user avatar
0 votes
1 answer
157 views

Ok, this seems quite basic, but I can't figure out. I have a record myRecord = {key1: "value1", key2: "value2"} I also have myCombo with the options ["key1", "key2&...
Germán Castro's user avatar
0 votes
0 answers
124 views

I am a bit confused as to whether EF Core 8 and 9 support owned record structs and collections of those or not (ChatGPT says you can do it and even gives me ...
Valo's user avatar
  • 2,130
0 votes
1 answer
112 views

I'm diving into the world of Functional Programming in C# and trying to replicate some of my projects using functional programming. One aspect of functional programming is functions and immutability. ...
Paulo Aboim Pinto's user avatar
1 vote
1 answer
65 views

Description I am developing a Flutter app designed to assist people with hearing impairments by playing real-time audio from the microphone to the speaker. The app uses a recorder to capture audio and ...
Haroon's user avatar
  • 21
-1 votes
1 answer
34 views

I have a JSON record I converted to a PHP array. ...
mike_s's user avatar
  • 27
0 votes
0 answers
55 views

I have been asked by our company to begin work on a new Sample Register for test pieces we handle. I have found a way to append information to a list of samples once they have been allocated a number. ...
Harbinger's user avatar
0 votes
1 answer
170 views

I am writing a library similar to Fluent Validator that will allow object modification. For ordinary classes, it works without a problem but I try to code a similar approach with a record and stumble ...
Marek Wdowiak's user avatar
0 votes
1 answer
72 views

I have an object type type_object created in the database and want to declare a record type type_record in a package for ...
NablaDelta's user avatar
0 votes
2 answers
117 views

I am using the below record in my Quarkus application and at some point I need to access the requestId field, located in Statements nested record. I want to avoid using the getters provided by the ...
Alex_Pap's user avatar
  • 556
-1 votes
2 answers
109 views

I have a latex file which consists of a list of about 10,000 records consisting of a head word plus reference numbers separated by a comma. Some numbers are marked with latex codes. ...
Robert E's user avatar
2 votes
1 answer
756 views

I found how to convert Table to Record using the following code here. ...
undercutvirus's user avatar
0 votes
2 answers
326 views

I'm converting an old Perl/MySQL database application to Oracle APEX and there's one feature in the old system that I've been unable to figure out a way to do... Assume that each table is made up of a ...
Dennis's user avatar
  • 1
1 vote
0 answers
37 views

I use Flutter to call the record package and start the recording stream on Windows. The audio format I set is 16bit PCM, 48000HZ, signal channel. The source code in the package uses IMFSourceReader, ...
Reew1nd's user avatar
  • 31
1 vote
1 answer
187 views

I want to create a procedure which performs some manipulations on a variable record type. Globally, I have an array of records. I want to sort the array, but by the records’ fields. I want to pass the ...
t232006's user avatar
  • 21
0 votes
0 answers
83 views

This is my C# code: record struct recName(int A) { } And this is generated code behind the scenes: ...
FR3Y4's user avatar
  • 1
0 votes
1 answer
53 views

App crashed showing error index out of range. In cloudkit dashboard, querying the table showed half of the records missing. No changes were made neither to the app nor the database since the last ...
nixxe's user avatar
  • 1
-2 votes
3 answers
487 views

If you have a column in your table that contains inconsistent data for destinations, for example some may be "New York", some "New York, USA", "NY", etc. for different ...
vehk's user avatar
  • 107
1 vote
1 answer
57 views

I am learning PureScript due to not being satisfied (in particular) with TypeScript's type safety of what's called "records" in PS. While doing so I stumble upon the exact same problem in PS,...
Hi-Angel's user avatar
  • 5,915
1 vote
2 answers
72 views

In principle (T & Record<K, U>)[K] should evaluate to U but it doesn't seem to work in the case where ...
Exifers's user avatar
  • 2,932
0 votes
2 answers
480 views

When I try to use the record keyword in my C# WPF .NET Framework file, it is recognised as a keyword, in the sense in appears in the code completion drop-down menu when you start typing, but then does ...
Adam's user avatar
  • 3
-2 votes
3 answers
172 views

I have an input text file with a single line having thousands of records one after another. I want to split them after length of 10 characters each. ...
Prashant 's user avatar
2 votes
1 answer
211 views

The class MyClass interfaces with an indexing sub-system that requires each record (Record<string, any>) to contain a ...
sbgrl's user avatar
  • 23
0 votes
0 answers
340 views

I have a script that has been running for several years. In the past week, it has started throwing file-in-use-by-another process errors: Out-File : The process cannot access the file '\OB-UTIL-PRD-01\...
eileen's user avatar
  • 1

1
2 3 4 5
74