set date variable to 8pm last night
Hi I'm wanting to set a variable date in the format Y-m-d 20:00:00 of the previous day. can someone help? ...
Hi I'm wanting to set a variable date in the format Y-m-d 20:00:00 of the previous day. can someone help? ...
I have a word file for converting to HTML file.Word file will include some headings.Corresponding to the headings there is also the description for the headings.The all headings will be placed in the top of the document as numbered-1,2,3,.etc.The number of headins may changed.I want to convert the headings to the links ,and when i click ...
Hi, I have two tables Students and Origami. Origami has Foreign Key of Students table. Each student can make one or more origami for each month. Students sample data: StudentId, FirstName, LastName 187 , John , Maslow 196 , Crystal , Hood 195 , Sarah , Lewis Origami sample data: OrigamiId, StudentId, CreationDate, NumberOfOriga...
Hello, I am a vb.net programmer switching to C#. I have the following code for a console application (targeting NET20) using System; using System.IO; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace eScoreSwapper { class Program { private string _dbName = ConfigurationManager.Ap...
I have code that interacts with a gridview, and the code is exactly the same for multiple gridviews. So can I do something like this: Dim gridViewPointer As GridView If (gridViewNumber = 1) Then gridViewPointer = GridView1 ElseIf (gridViewNumber = 8) Then gridViewPointer = GridView8 ... ...
I have the following VB.NET code that I am using to sort a Data.DataTable by column count. For Each dtTarget As Data.DataTable In _ From x In Target.Tables _ Where DirectCast(x, Data.DataTable).Rows.Count > 0 _ Order By DirectCast(x, Data.DataTable).Columns.Count ... Next Is there a way to indicate that x is a Data.DataTab...
I have been tasked on a project to provide Crop Rotate and Resize to the user. This is a WPF application and has to be written in VB.net. All the examples I find are in c# and I am not really good at converting it over. Does anyone has any good examples that I can take a look at to add this functionality into the application. Bare wi...
var debtProtectionId = 0 // get the selected id of debt protection dropdown if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') { debtProtectionId = mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue(); } // get the store record with this id var storeRecord = planC...
I want to load a dictionary at startup in my console app from my app.config. I know that I could use an xml library or linq to XML to load it to parse and traverse it. My question is there a BUILT IN way of doing it. Isn't there some way to add an application configuration section into the app.config and then have it loaded automagi...
Very simple update. It simply fails, no error, no change gets made to the database. Dim db As New BarClassesDataContext Dim foo = (From a In db.articles Where a.id = 14 Select a).Single Response.Write("<h3>" & foo.title & "</h3>") foo.title = "This is my new, updated title for article ID #14" db.SubmitChanges() Here is the relevent po...
So there's this accounting package at my client that spits out text-based reports with invalid dates, like February 31st or September 31st. The reports are formatted with spaces and mono-spaced fonts. The data that gets parsed out are fed into a more formal local SSRS report, and that's about all you need to know. What I am interested ...
I'm trying to use the following command: Dim xmlFilePath As String = _ System.Configuration.ConfigurationManager.AppSettings("XmlFilePath") to retrieve the following setting: <applicationSettings> <MySolution.WebProject.My.MySettings> <setting name="XmlFilePath" serializeAs="String"> <value>C:\ASP.NET\Fold...
Hi guys, We have a current implementation of a log file manager where it's two main purposes are to 1. rename files generated by other programs with a date/time stamp so they create new ones, and 2. delete files older then X amount of days from a specified folder. The program also makes it's own log file which records when these event...
I have a couple of controls that are set to runat="server", but are showing up as "not declared" in the vb code behind. They are not being setup in the designer.vb file at all, even if the design.vb is re-created. The only thing that I can think might be causing this is that the controls are inside of a custom control. The code looks ...
Hi all, I used C# before. However, after I joined in a new company, I need to write vb.net. However I find very difficult to write it. Because I found that vb.net is not strong-typed. It is really not strong-typed? Or any settings for that? Here are examples. If (Me.Check1() And Me.Check2()) Then From my C# knowledge, once Me.Check1(...
What is the best way to store 4 bits from a byte in VB.Net? Where best means: Most straightforward method of storage from a Byte type. The easiest to work with while performing bitwise operations. Straightforward conversion of the bits to other types. Storing them in a BitArray via it's constructor reverses the order of the bits. This m...
I have a linqtosql dbml where I dropped a stored procedure into the designer interface. Stored procedure name: GetUser(@userid int) Select * from users_tbl where userid=@userid Now in the code I want to do something like this: Dim db as new UserDataContext Dim myuser as users_tbl = db.GetUser(1) How can I tell if GetUser returned...
here is the code Function getData(ByVal id As String) Dim reader As SqlClient.SqlDataReader Dim statement As String Dim count As Integer Dim temp As Integer statement = "SELECT * FROM General WHERE accountid='" + id + "'" Conn.Open() Comm = New SqlClient.SqlCommand(statement, Conn) reader = Comm.Execute...
This is a followup to the question I asked here: http://stackoverflow.com/questions/3445398/class-hierarchy-data-design-in-an-rpg-game-vb-net I understand the answer in the post above, which is absolutely amazing, by the way. It's about implementing interfaces with a class. However, what if a class needs to share features with anot...
This is the code i have so far (no i didn't write it all by my self took help from net) but i am unable to understand why i am getting this error Imports CookComputing.XmlRpc Public Structure blogInfo Public title As String Public description As String End Structure <XmlRpcUrl("http://127.0.0.1/wordpress/xmlrpc.php")>...