I am working on inserting data into our UniData server from .net.
I have successfully updated an existing record using UniQuery by using the Modify statement. And according to the documentation, I can insert new data this way also:
"UniQuery also provides the MODIFY command, which enables you to enter or modify data in a UniData fil...
Hi,
I want to compare two double values till the second digit from decimal point. I am using following statement but I think it is not working properly.
dbl1.ToString("g2", CultureInfo.InvariantCulture).Equals( dbl2.ToString("g2", CultureInfo.InvariantCulture))
Am I missing anything here?
...
I am aware that linux has timestamp info available to prog. langs. which is very handy.
I m developing a program and i need to append date time to the created file. and it should be unique.
Later on I want to parse the files, but i want to parse the latest one only.
Is there such option in .net like timestamp in *nix systems?
Any ex...
I'm running into an issue using a DataGridView bound to a iBindingListView implementation (third party dll) attached to a large collection.
There's a certain property in my collection type, named MyDateTime, which is a value class similar to DateTime, but also with some legacy code.
This struct implements iComparable, iComparable<T>, ...
I am sending all the parameters needed to the SOAP server, but they require one of the params to be a decimal and one to be a datetime. I can't figure out how to convert a string to either type.
<?php
$params = array(
# this converts the string to an int
'int' => (int) '123',
# to datetime is a big ? to me
'day' => date("n/j/Y...
when we start our .net application using a double click on the explorer or from command prompt where your folder path is proper full name then there is no issue at all.
But when you start it from command prompt with the path being a Shortname involving a ~ the application behaves weird. IF is entering condition though the condition eval...
Is it possible to combine these 2 queries or would this make my code too complex?
Also I think there should be a performance gain by combining these queries since I think in the near future my source table could be over 11000 records.
This is what i came up with so far :
Dim lit As LiteralControl
' check characters not in alphabet
Dim...
Just to get this out in the open I am new to JAVA, KSOAP, and JSON. So I'll try to explain this the best I can.
A while ago I created a webservice to be consumed by Blackberry Apps that we're built using the plug in for Visual Studio. Now the project I am working on, I want to consume the same webservice for Android devices. For the mos...
ETA: I use visual studio 2008 express edition.
If I override WndProc and mess up somehow, I'll usually backtrack by commenting out code until it works again.
The strange thing with WndProc though is you can strip it down to:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
MyBase.WndProc((m))
End Sub
and ...
I use SendCompletedEventHandler of SmtpClient when sending a list of emails.
The SendCompletedEventHandler is only called when have already sent all emails in the list.
I expexted, that SendCompletedEventHandler is called when an email is sent.
Is there something wrong in my code?
public void SendAllNewsletters(List<string> re...
Is there any way to deploy an item without using this attribute? I'm starting to get a stack of attributes over my test base and it's becoming hard to maintain. Most of my items are DLLs that need to be put into a folder below the deployment directory.
...
When using .Protocols, I can run the following pseudocode to authenticate to an AD:
try
{
LdapConnection c = new LdapConnection("User", "Password");
c.Bind();
}
catch (LdapException le)
{
Debug.WriteLine(le.ResultCode);
}
This code will allow me to get the "Invalid Credentials" error string, and the AD code "49", but I need t...
I have an ASP.NET (3.5) page that allows a user to upload an Excel 2003 file with multiple sheets and that data is inserted into staging tables in the database. The mapping of database tables/columns to Excel sheets/columns is specified in an XML file. I use LINQ to SQL to send the data to the database.
ImportTablesDataContext db = ne...
I have got a problem handling data which is almost well-formed XHTML document except for it has multiple DTD declarations in the beginning:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!DOCTYPE HTML PUBLIC "-//W3C...
I don't understand why 'x' below converts, but 'y' and 'z' do not.
var list = new List<List<int>>();
IEnumerable<List<int>> x = list;
List<IEnumerable<int>> y = list;
IEnumerable<IEnumerable<int>> z = list;
Does the new covariance feature simply not work on generics of generics or am I doing something wrong? (I'd like to avoid using ...
I am trying to get the below linq query to return -1 if there isn't any current value. I was looking at this article on MSDN, here, and it seemed that DefaultIfEmpty() was what I wanted.
Unfortunately, I am getting a The type arguments cannot be inferred from the usage. Try specifying the type arguments explicitly. error.
I guess I a...
Hello,
In my previous project we used NHibernate and Spring.NET.
Transactions were handled by adding [Transaction] attribute to service methods.
In my current project I'm using NHibernate and NInject 2 and I was wondering if it's possible to solve transaction handling using "Ninject.Extensions.Interception" and similar [Transaction] ...
I like using the vector drawing feature of Expression Blend to create icons. That way I can change
colors easily on my icons without having to resort to an image editor.
But my question is... Say I have a treeview control that has an icon next to each tree element and say I have hundreds of elements. Do you think using images is faster ...
I have a static logging function that uses StringBuilder to concatenate a bunch of query parameters before sending the string to a log. This process can get moderately long, as we may have ~10 parameters (.Append calls) and end up being ~200 chars long.
I want to minimize the performance impact of the logging function. (This logging fu...
I need to access code in a native C++ DLL in some C# code but am having issues figuring out the marshaling. I've done this before with code that was straight C, but seem to have found that it's not directly possible with C++ classes. Made even more complicated by the fact that many of the classes contain virtual or inline functions. I...