Topics
-
- 0 replies
- 632 views
Hi, I'm working with Delphi 2005 and I have just connected to an Informix database. The goal is to retrieve some table columns in a datagrid. The next step is to work with parameters that can be entered in a textbox. If I enter an integer, I get the right values in the grid, but when I use a varchar as a parameter, I get no value. I suppose that it has something to do with converting the data type, but I don't know exactly how to do that. All the non numeric fields in the database table are varchars, while the data type of the textbox1.text property is a string. How can I convert this value so it can be recognized? Thanks in advance! Carloz
Last reply by Carloz, -
-
- Leaders
- 5 replies
- 884 views
What are some of the techniques that you use to make your collections type safe? In other words, make it so that an ArrayList will only take an object of type CustomObject (insert some type here...string, int, employee, datafile, etc..) This article outlines three differnet techniques: inheriting from an existing collection class (e.g. ArrayList), encapsulation, and inheriting from CollectionBase and DictionaryBase. I know what Plausibly Damp would do but it still seems like a lot of work, esspecially if you have more than one collection you'd like to strongly type. And why did you choose that technique over others? It also seems this will be a moot point when wh…
Last reply by snarfblam, -
-
- 2 replies
- 3k views
Howdy all, Great forum here. I need some help with regex. I am (trying to) use regex to extract client names from text that I have extracted from scanned pages. The zone text varies in it's format as shown in the examples below. I need to extract the client name(s), both husband and wife if present. FBT&T CUST FOR THE ROLLOVER IRA OF JOHN Q PUBLIC 1234 MAIN ST ANYTOWN, CA 55555-4444 JOHN Q PUBLIC AND JANE M PUBLIC JTTEN 1234 MAIN ST ANYTOWN, CA 55555-4444 JOHN Q PUBLIC 1234 MAIN ST ANYTOWN, CA 55555-4444 JOHN Q PUBLIC & JANE M PUBLIC JTWROS 1234 MAIN ST ANYTOWN, CA 55555-4444 I need to pull out JOHN Q PUBLIC an…
Last reply by BWolf, -
- 1 reply
- 2.7k views
I want to set a variable equal to the third datacolumn named "myUser" on the first datarow of my datatable named "users". Anyone know how to do this? Thanks, Chester
Last reply by Mister E, -
- 2 replies
- 802 views
I have an access backend and I have been working with parameters for a while with the Insert, Update, Delete, and Append commands. The ones where you use an executenonquery. Now, I want to use a statement similar to this: SELECT * FROM myTable WHERE user = @myUser;" Now I can do this with using a variable with my dataadapter and have no problems filling my dataset, but the oledbdataadapter will not accept parameters. So my question is, how can I use this parameterized query and fill a dataset? Thanks, Chester
Last reply by cpopham, -
- 2 replies
- 1.1k views
Does anyone know how to bind multiple labels in the datagrid footer. I tried to do it today but I could't. I can bind labels in the DataGrid columns but not in the footer. My html code is below: For the test purposes I use the same database field for all labels. <asp:DataGrid id="dgFooter" runat="server"> <Columns> <asp:TemplateColumn> <ItemTemplate> <asp:Label ID=Label1 text='<%# DataBinder.Eval (Container.DataItem, "InstallEach")%>' Runat=server></asp:Label> </ItemTemplate> <FooterTemplate> <asp:Label ID="Label2" text='<%# DataBinder.Eval (Container.DataItem, "Insta…
Last reply by mumick, -
- 2 replies
- 804 views
in my c# application i am calling an exe to do some processing for me. i am calling it by creating a new System.Diagnostics.Process . the problem is that when the exe is executed and does its processing, a command window ( black dos window) pops up for a second or two. is there any way i can call the exe from within my c# application, without it pop up while its processing? Would appreciate any help! Ziggy.
Last reply by ziggy82, -
- 3 replies
- 7.3k views
Am trying to make my treeView to select (check) automaticaly all the parent nodes from which the selected node belongs to, unfortunately, I'm having trouble to do this. For starters, I can't even retrieve the current selected node by using "this.myTreeView.SelectedNode" property. It keeps saying me that the "object was not set in an property index" or something like that. So, How can I say to the treeview to select all the parent nodes from the current selected one? Than you...
Last reply by PWNettle, -
- 0 replies
- 568 views
All, I created a winControl and Resx and Assembly are stays as default (meaning I didn't modify it). I use Lutz's Reflector to check that WinControl I just created, it has a PublicKeyToken set to "b77a5c561934e089". what is this number? how did it even generated at the first place. I also looked at other winControls I created and their PublicKeyToken is set to "b03f5f7f11d50a3a". I did a search on these two numbers and seems they are showing up everywhere in Google. can someone tell me how they get generated and can I change this PublicKeyToken? say I want all of my WinControl use "b03f5f7f11d50a3a" instead of right now, some use "b03f5f7f11d50a3a" w…
Last reply by microkarl, -
- 4 replies
- 1.2k views
i need to send user name property in "get" method to another site (they only need it in "get")... how can i build the code to send the stream? i looking in exmples for hours... but can't find the way... please...
Last reply by yaniv, -
- 1 reply
- 2.1k views
Hi! I have a control that a has a few properties that retrieve inherited BaseCollection classes. How can I edit theese classes, at design-time, with the Object Collection Editor? The problem is that I don't know how to set the collection members type, and so they allways appear on the editor as System.Object. Thanks, Alex :p
Last reply by AlexCode, -
- 0 replies
- 865 views
Hello I've built a windows test client for a web service I have, and I'm trying to attach a certificate to the request from the test client to the web service. This works fine in when in release mode, but the certificate does not seem to be attached when in debug mode. Can anybody figure out why this is? Here's the code where I attach the certificate: (WS is the web service) WS.ClientCertificates.Clear(); X509Certificate certificate = X509Certificate.CreateCertFromFile( @"C:\cert.cer" ); ServicePointManager.CertificatePolicy = new ServerCertificatePolicy(); WS.ClientCertificates.Add( certificate );
Last reply by kilobyte, -
- 2 replies
- 1.2k views
I recall there being some online tests at Microsoft for Microsoft certifications. Just practice tests to show you were you need to work on in terms of skills. I cannot find it now to save my life. Anyone know where it is? I'm a MSDN Universal subscriber if that helps. I'd prefer a Microsoft sample test as I've done those before - but I'm not terribly picky. I just finished up the Microsoft book for .net windows desktop development and I want to take a few practice tests before I plunk down the money for the official certification test.
Last reply by Denaes, -
- 1 reply
- 768 views
Hello ! 2 questions: 1) I have a datagrid with a button column and this code for getting info from a row Private Sub MyDataGrid_ItemCommand(ByVal source As Object, _ ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) _ Handles MyDataGrid.ItemCommand Label1.Text = e.Item.Cells(2).Text() End Sub If Button Column is a LinkButton - > OK If Button Column is a PushButton - > this sub is not accessed (debug stop not stopped). What is wrong ? 2) How can be implemented a column in a datagrid with PushButtons on it and different captions for this buttons (for each row ano…
Last reply by ValentinBadea, -
-
- Administrators
- 2 replies
- 820 views
i have a method, and i take a time span at the beginning and the same at the end, and take them away, and i should be able to see how long a method takes to do its stuff, but in the miliseconds and ticks both come up as zero at the end. why is this? heres the code. public void DrawToScreen(Graphics h) { this.GetStartTime(); this.processingStart = System.DateTime.Now; pen.Color = Color.Black; System.Drawing.Font f = new System.Drawing.Font("Arial",8); h.FillEllipse(new SolidBrush(Color.HotPink),(float)position.Xval,(float)position.Yval,diameter,diameter); Vector v = new Vector(this.position.Xval,this.position.Yval); v = this.position.Displace(60,8…
Last reply by fguihen, -
-
- 3 replies
- 802 views
Hello, I need to transform some values of an MySQL DataTable query in Crystal Reports from 0 and 1 to "sim" and "não" (yes/no), that is, the report from Crystal Reports must exchange values 0 and 1 from some specific datafields to a costumized text value... Thank you for any possible help... "Help me Pendragon Kanob, you're my only hope"
Last reply by pendragon, -
- 2 replies
- 680 views
I have never really done any hard core coding in asp, however I need to do this one page. What I want is a page to display two buttons one "Private" and the other "Trader". What I want is if the user hits the "Private" button to direct the user to private.asp page and if he hits "Trader" it directs the user to trader.asp. Can anyone help Thanks in advance Simon
Last reply by lidds, -
- 0 replies
- 545 views
I haven't programmed anything in the longest time, and I worked with c++, so I hope some people will be able to guide me in some resources to look at; what I want to do is incorporate some calendar functionality in a DirectX based game. The game creators allow players to modify their UI which is XML based. So my question(s) is/are: 1) Are there a functions already available to work with a database that stores calendar information? 2) Where can I start researching this information? 3) Is there already a schema I can work with or will I need to create one? 4) How hard would something like this be, considering a guide is already provided via the game creators for restr…
Last reply by xpat69, -
-
- Leaders
- 3 replies
- 4.7k views
if i have timeSpan a = 12,10,20,450 (as in hours , minutes, seconds, milliseconds) and i take another timespan a few seconds later which gives me time span c = (12,10,22,234), and i us c.Subtract(a), will i get (0,0,2,216)?? im a bit unsure as to how timespan works.
Last reply by HJB417, -
-
- 1 reply
- 1.3k views
Hi All, I am trying to change a column in a Excel Spreedsheet from Text to Short Date. Is this possible??? If not a column what about a range M3 to M30? SonicBoomAu
Last reply by SonicBoomAu,
-
Who's Online 0 Members, 0 Anonymous, 82 Guests (See full list)
- There are no registered users currently online