|
This could be related to ANSI Code Settings.
Ray Yagubyan
|
|
|
|
|
|
awedaonline wrote: The code below returns an empty records but gave records from SQL+.
That isn't clear.
Are you saying it returned zero records or that that returns some records but there was no data in the records?
What values are returned by the following properties?
dataReader.FieldCount
dataReader.HasRows
What is the data type of 'text' in the database?
|
|
|
|
|
My first thought is to remove the semi-colon from the end of the statement. Many ADO.net providers don't like executing a batch of statements.
P.S. I get the following when I try to execute "SELECT * FROM dual;"
Oracle.DataAccess.Client.OracleException: ORA-00911: invalid character
I hope your classes aren't swallowing Exceptions.
modified 23-Nov-12 15:26pm.
|
|
|
|
|
Hi
i need to run an vb.net exe builded on VS2010 express edition. Can i run the exe to Run on any pc ?
DO that need framework installed in that machine ?
Please give inputs.
Thanks,
Krish
|
|
|
|
|
If you need to run your application on a separate machine, then you really need to have the .NET framework installed on that machine. There were some commercial applications that allowed you to bundle everything you needed for your application into one single executable but, in general, these were very expensive and also meant that clients wouldn't benefit from enhancements to the underlying framework while they used your app.
One small point - you said a VB.NET application. You do realise that this is the C# forum don't you? The people who answer questions on the VB.NET forum are no less clever.
|
|
|
|
|
I would suggest that you in future place all VB.NET question in the VB.NET Forum[^].
But to answer your question all you need to do it make sure that the machine has the correct .net framework installed.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Iam sorry, iam a c# developer, so in the same thought process
i placed here. here afterwards, i will take care.
Thanks,
Krish
|
|
|
|
|
Not a problem
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Hi, I got a project where I need to filter the data from SAP by passing input values from .NET and bind that result with GRid.
Using VS2010, C#-Asp.net 4.0, SAPdotnetconnector3.0.
I am new to this So i need guidance
|
|
|
|
|
I'm sorry, but rather than you wasting your time waiting for an answer here, I'd suggest that you aren't going to get an answer here. Your best bet for an answer on this would be to search the support forums on SAP, and to try searching through Google.
|
|
|
|
|
Difficult to say without more info.
You'd probably need to get the info from SAP somehow (with the SAPdotnetconnector3.0 I assume), but you should check the documentation and/or sample code of that tool for more info. It could push the info or it could pull the info.
If you finally receive the info you can build "object classes" of the info you received and bind the properties of those classes (which you put in collections) to the grid.
You'll need to be more specific and give more specific problems if you want an answer. If I would answer this one best I could I'd need to research several hours or longer and write quite a lot of text.
|
|
|
|
|
Hi All,
I have an "Acount" and my Acount has multiple "users" .
And my user have three settings like App,Web,Key
So we have to write XML on this behalf of tree.
Structure like -
Acount
User1
Acount Setting
web
App
Key
User2
Acount Setting
web
App
Key
I have create XML like same as structure.
|
|
|
|
|
Have a look at the XmlDocument class here[^].
Basically you'd create a XmlDocument object and add XmlElement [^] instances.
For example:
XmlDocument document = new XmlDocument();
XmlElement root = document.CreateElement("Account");
root.SetAttribute("SomeAttribute", "42");
document.AppendChild(root);
XmlElement child = document.CreateElement("User1");
root.AppendChild(child);
XmlELement grandchild = document.CreateElement("AccountSetting");
child.AppendChild(grandchild);
document.Save(pathToMyXmlFile);
2A
|
|
|
|
|
Markovl's suggestion is good and I use it for small amounts of data. For large amounts of data I tend to use an XmlWriter -- I keep thinking of writing something about it.
|
|
|
|
|
Hi
I used Moles to replace the method but not able to send a ReturnCode of 0 since it is a Read Only Property
MLdapConnection.AllInstances.SendRequestDirectoryRequest = (rqst, rsponse) => { return direcResponse; };
Is there any way to send a 0 return code in the return of the Mole delegate?
Thanks for you time.
|
|
|
|
|
If this is possible, please tell me how I can generate a set of constants which...
-- I can be reasonably certain are each mathematically unique
-- I don't have to assign individually, one-by-one with my keyboard.
ints will be fine.
I wrote out a long explanation of what I'm after, so if this doesn't make sense, just ask and I'll post a more involved explanation.
|
|
|
|
|
Enums[^]
enum zeConstants: int
{
bla1,
CListCtrl,
bacon,
StarWars = 7
}
static void Main()
{
foreach (zeConstants flag in Enum.GetValues(typeof(zeConstants)))
{
Console.WriteLine("{0} = {1}", flag, (int)flag);
}
Console.ReadLine();
}
|
|
|
|
|
Just discovered this, just guessing, never saw it before.
Looked it up on MSDN and DUH !!! They don't have it referenced !
Please, I gotta be wrong on that. Correct me and show me where, and what this is doing, and where the syntax is defined..
public enum UniqueValue
{
Fred,
Barney,
Dino,
BamBam,
Pebbles,
MrSlate,
Arnold
}
If that does what I'm hoping it does, then I am one step closer to my goal of legible sensible source code
|
|
|
|
|
C-P-User-3 wrote: Please, I gotta be wrong on that. Correct me and show me where, and what this is doing, and where the syntax is defined..
The code you have the would create a constant flag, used as "UniqueValue.Fred" for 0, or "UniqueValue.Barney" for 1. There's some examples here[^].
|
|
|
|
|
Got confused when the C# IDE put "UniqueValue" in bright pink on my screen. I thought I had stumbled onto a keyword.
|
|
|
|
|
C-P-User-3 wrote: Got confused when the C# IDE put "UniqueValue" in bright pink on my screen.
Pink??
http://studiostyl.es/[^]
|
|
|
|
|
Pink ? Strong purple ? I don't know what to call it.
Whatever, whatever, my education continues and now I'm so smart that I know that the color changed because it follows the "enum", and not only that, I think I'm getting this stuff about
public enum Zyxwvut
{
OneValue,
AnotherValue,
WhateverValue,
AndSoOn
}
Clear in my head, even the syntax with the colon and the type before the opening bracket.
Thanks for the pointer to the syntax page. I thought "UniqueValue" was a keyword or something, stuck it into the search thing on msdn and came up with zero; at which time I had a major DUH moment. Your suggestion clarified a lot for me. Thanks a ton.
|
|
|
|
|
They have contests for who has the best studio styles now ?
Hmmm, I wonder, you know; that's really not a bad idea.
Later, gotta get this done for the boss so I can keep my job
|
|
|
|
|
Hold it, wait a minute, on that msdn page, I just read this...
From the MSDN page: Usually it is best to define an enum directly within a namespace so that all classes in the namespace can access it with equal convenience. However, an enum can also be nested within a class or struct. I thought that every variable had to be in a class; but then these aren't variables; I guess; somebody fix my brain on this matter.
So then, if I take the enum thing (what is the right word for "thing" in this context ?) out of the class structure, and just put it after the opening bracket of the namespace, I can use the names in the enum list as they are ? Without the UniqueValue.Fred nomenclature ?
e.g., I could just use the name "Fred" (no quotes" and get a guaranteed unique value ?
|
|
|
|