User Profile
Collapse
-
Do you need the foreach at all if you just want to print the details for a single, known/found object? -
The idea behind this pattern is really to create an abstract layer between your classes and their data-store (the place(s) where their data is persisted).
Essentially, your class needs to be able to persist data in a repository somewhere...may be it's stored in a SQL database, or CSV file, or XML file...or maybe the data is stored in multiple places and needs to be aggregated together for your class's repository.
The...Last edited by Frinavale; Nov 3 '20, 09:13 PM.Leave a comment:
-
It seems like a lot of work to loop through a record set to look for rows that contain a search word.
So, I just have a quick question (and I don't even know if it pertains to your current application but..), did you try using the Recordset.Filte r Property of the original record set to get a version of it filtered on your search word?Leave a comment:
-
Is the data you want to insert into the Data Table already in another Data Table (or tables)?
You can use the Select statement with the Insert statement like this:
Code:Insert Into Table1(ColID, ColNumber, ColDate) Select tbl2ID, tbl2NO, tbl2Date FROM Table2
Leave a comment:
-
The controller has a request property that returns a HttpRequestBase that has a number of properties and methods that you can use to find information about the request.
See the link I posted to the documentation to learn more.Leave a comment:
-
According to the documentation on the MSDN Library for the PostAsJsonAsync method...it is only available if you are referencing the System.Net.Http namespace in the System.Net.Http .Formatting assembly.
Make sure you have referenced everything appropriately.Leave a comment:
-
I suggest you do some research into bio-metric readers that have software development kits (SDKs) available for you to use in your application.
Once you have a reader, and the ability to access the information it provides on a read, you can write your application.Leave a comment:
-
There are a number of string manipulation methods that you can use in Python. Check out this quick reference for String Manipulation in Python.
What you could do is use thesplit
method on each string you get from the file on the,
character which would give you an array of 2 words.
Then you would make a new string by concatenating the values into the right positions.
For example:
Code:oldString = "2305,11770"
Leave a comment:
-
Swing is a GUI toolkit for Java.
AWT stands for Abstract Window Toolkit and is the predecessor of Swing.Leave a comment:
-
Please repost the error message and tell us what line the problem is happening on so that we can help you.Leave a comment:
-
Frinavale replied to i want a java program that will help to predict the population size of a country in tin JavaThe first thing you should do is investigate the algorithm you need in order to make your prediction. This algorithm does not need to be implemented in Java yet...you just need to gather a list of all of the data that you need to make your prediction and an idea of the steps/processes you need to use to make the prediction.
After you know how your algorithm is going to work, and you know what data you need to make it work... Then you...Last edited by Frinavale; Mar 12 '18, 05:56 PM.Leave a comment:
-
Use theCreate Procedure
statement to create your procedure...
See this documentation for the CREATE PROCEDURE and CREATE FUNCTION Syntax.Leave a comment:
-
So, apparently my problem a known bug in the mobile templates.
Apparently, if the post count is set to less than 5 posts, then the mobile homepage will always show minimum 5 posts.
So, to get around this bug I had to edit the site's template and hard code the number of posts shown to 1.
I also, in the case that it is the index page (home page), modified it so that the full post was displayed instead of the...Leave a comment:
-
What error are you getting?
Assuming yourtxtSasia
is a TextBox, thentxtSasia.Text
is already a string.
Do you want to convert that into an Integer?
Use the Integer.TryPars e Method...
Code:Dim sasiaInt As Integer Integer.TryParse(txtSasia.Text, sasiaInt ) cmd.Parameters.AddWithValue("@sasia", sasiaInt) Dim cmimiInt As Integer Integer.TryParse(txtCmimi.Text, cmimiInt )
Leave a comment:
-
Frinavale replied to How to write query to extract date only for different customers on the same day.in AccessI may be a bit off here since I don't usually work with Access but you should be able toGroup By
yourShowDate
and select distinct ShowDate/Customer(s) having a count that is greater than or equal to 2.
Something like:
Code:SELECT ShowDate, Count(*) as NumCustomersShown FROM (SELECT DISTINCT ShowDate, Customer FROM @PropertyShowings) Group By ShowDate Having Count(*)>=2
@PropertyShowin gs
...Last edited by Frinavale; Mar 6 '18, 02:46 PM.Leave a comment:
-
The SQL 'distinct' statement is used to return only distinct (different) values. So if you have multiple records with the same CITY value, this will only return records that have different values (see the link for more details)Leave a comment:
-
Automatically Display Most Current Post in Blogger (Mobile)
Hi,
I have started a blog for a local group that I volunteer with so that we can communicate with the public, post information about ourselves, and provide a means for the public to get in touch with us. We are using Blogger since it is a free blogging service offered by Google and it is relatively easy to use so that members can maintain the site going forward. Currently the website is using the "Travel" theme that has been...Last edited by Frinavale; Mar 6 '18, 03:24 PM. -
Notes:- you cannot have a static variable declared inside a method in C# so the static definition of the array of
long
s was moved outside of the method - &H80000000 is a hex number in VB.NET but in C# the hex notation is 0x80000000
- this
Power2 = result(exponent )
is an old school vb way of returning a value...therefo re thereturn
keyword was used instead
Code:static long[] result = new long[32]; private long Power2(long exponent){
Last edited by Frinavale; Feb 28 '18, 10:14 PM.Leave a comment:
- you cannot have a static variable declared inside a method in C# so the static definition of the array of
-
Ah, this seems to be a duplicate question but I will answer it since you have provided more details and code snippets I can actually refer to.
Yourdgv_Records
is a DataGridView that is part ofForm1
and since it isn't a shared (aka static) variable it cannot be used in your shared method.
So modify yourtestsub
method signature to remove the "Shared" modifier:
Code:Public Sub testsub()
Leave a comment:
-
I would imagine that each of your "panels" would be user controls.
That you would have to implement customized drag/drop logic for your windows to detect when one of your panels is moved within the window, out of the window (into a new one) etc.
Based on the huge scope that would be involved in answering your question, and the fact that you have stated that this is "urgent" (doesn't it seem like it's...Leave a comment:
No activity results to display
Show More
Leave a comment: