More Programming Articles Page 3

  • Purchase order lines

    When creating an association in ECO you are not guaranteed the order in which the objects at the end of the association will be presented. For this reason ECO...
  • Reusable class patterns

    I'm designing a new piece of software using ECO Modeler, which I will implement using ECO 2.As I have been modelling the business classes I have been paying special...
  • Application.ProcessMessages replacement

    Not only is Application.ProcessMessages quite long to type, often extra functionality needs to be called when its used. To this end I have created two basic wrappers...
  • How To Retrieve AutoInc Values with BDP in Delphi 2005

    In this article I’ll use the term “Identity” interchangeably to note Auto generated (from RDMS) values usually for a column representing the primary key of a...
  • Parameter exists

    You will need the function in this article (http://www.howtodothings.com/ViewArticle.aspx?Article=760) to get this working properly function ParamExists(const...
  • Get command line parameters

    (* GetParameterValue GetParameterValue will return the value associated with a parameter name in the form of /paramname:paramvalue -paramname:paramvalue and /paramname...
  • Get the size of a file

    function GetFileSize(const FileName: string): Integer; var sr: TSearchRec; begin Result := 0; if FindFirst(FileName, faAnyFile, sr) = 0 then begin Result...
  • BaseForm class

    Have you ever found yourself adding the same code to different forms? Well now you can use the following as a base class for all forms. =============== BEGIN CODE ...
  • MsgBox function

    Personally I find both the WinAPI MessageBox and Application.MessageBox and MessageDlg functions cludgy and always add the following function to every app. function...
  • Remove ReadOnly flag from file

    The following function will attempt to remove the read only flag on a file, you will need the function in this article...
  • Detect if file is ReadOnly

    The following function will return True if a file is read only. function IsReadOnly(const FileName: string): Boolean; var sr: TSearchRec; begin (* Assume not read...
  • How BoldTreeView works

    This is just a quick set of instructions rather than a comprehensive article. It is a copy of a posting I made in a Borland newsgroup... I'll give you an example of...
  • Multiline input in Winforms DataGrid

    The problem: how to configure Datagrid so that it would be able to accept multiline inputs in their standard TextBox cells? The first thing is to make RowHight large...
  • Store and Retrieve a Bitmap in ECO

    This article demonstrates the basics of how to store and retrieve a Bitmap in an ECO variable. First create an ECO variable in the class you wish to hold the bitmap,...
  • Two functions to evaluate OCL

    With the help of Jonas Hogstrom and Jan Nordén I have written 2 functions to evaluate OCL.First is to evaluate OCL in EcoSpace: public object...
  • Multi Level DataGrid

    Emil Indradjaja MCP, May 27th 2005 http://www.i-sources.net/?view=blog&blog_id=355647310 During my experiences building .NET with datagrid,...
  • Generating an article rating image

    You may have noticed a couple of new icons at the top right of each article?  The first new icon shows 5 grey stars, these fill up as gold stars as people specifying...
  • Running a Stored Procedure from VB.NET

    For general computer tips and techniques which can help anyone from newbies to experienced users get more out of their computers, check out Computer Secrets Unleashed....
  • Debugging IIS ISAPI modules

    Before I start I want to point out that this is not a product review. I have found an excellent way to debug ISAPI DLLs and it happens to require a very inexpensive...
  • Dynamic TableStyles Based on Object Type

    Here is an example of using different TableStyles depending on the type of the currently selected object in a DataGrid. I have 2 grids, each hooked to...
  • Reading a tagged value

    ECO allows you to add TaggedValues (name/value pair) to your model at design time. Here is how to retrieve the value of a TaggedValue at runtime. obj.AsIObject()...
  • Visual Studio has detected that this server is not running...

    You can correct the following error:Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET...
  • How To execute another EXE from VB .net

    Dim startInfo As System.Diagnostics.ProcessStartInfo Dim pStart As New System.Diagnostics.Process startInfo = New...
  • DataGrid.RowChanged event

    Have you ever needed a RowChanged event on a DataGrid so you can detect when the user scrolls through your data?  If so you have probably noticed that there isn't...
  • ReEvaluate or ReSubscribe?

    This article will explain derived members in ECO. It's primary purpose is to describe the difference between the ReEvaluateSubscriber and ReSubscribeSubscriber...
  • A Multi-Client-ECO application example.

    The application we are going to build can be used for capturing worktime and breaks during the worktime. The worktime can be captured with multiple clients and the...
  • Turning on/off ECO logging

    ECO II has a new feature in Update 2 which makes it easier to see what it is doing behind the scenes. When you run your app you can look in the messages window of the...
  • ASP.NET Page Caching and IIS6 Kernel-Mode Caching

    Wondering how ASP.NET page caching relates to IIS6 kernel-mode caching?  With output caching enabled for a Web Form,  the page will be served directly from the...
  • Automatically setting the MaxLength in your GUI

    As of D2005 udpate #2 there is a new helper class in the ECO framework named MaxLengthSupportFunctions. Normally when you databind an EditBox for example to an ECO...
  • Disabling multiplicity constraints

    If you have ever tried reading constraints from an ECO model you have probably noticed by now that there are lots of auto-generated multiplicity constraints. I...
  • 301 Page permanently moved

    When rewriting this website as ASP .net I had a lot of external pages linking directly to articles using the old ASP URL.  I wanted to be able to display the article...
  • Evaluating constraints

    Before updating the database with changes to your objects it is wise to check that the object is in a valid state first. ECO allows you to model constraints against...
  • Serialization exception (.net framework 1.1)

    If you recently moved your code base from .net 1.0 to .net 1.1 and aregetting one of the following errors when trying to use a ClientActivated Object then you are...
  • Sending HTML emails with ICS

    procedure THtmlMailForm.SendButtonClick(Sender: TObject);begin if FRunning then begin MessageBeep(MB_OK); Display('**** ALREADY RUNNING ****'); Exit; end; FRunning...
  • Evaluating in-database OCL in code

    In a form etc we can evaluate OCL in the DB by using an OclPSHandle, but how do you evaluate OCL in the DB in code? This tip thanks to Jan Norden from Borland....
  • Code derived associations

    This article will demonstrate how to use code derived associations to implement user-defined class constraints.Code derived association is derived association without...
  • Adding runtime error messages to page validation

    One of the requirements when writing this site was the ability to model object constraints in OCL and then validating the current page against those constraints. The...
  • Sending emails in ASPX

    This is a really simple one, but I have seen a lot of people asking so I thought I'd write a quick tip for it. A lot of people will advise you to create an...
  • [No relevant source lines]

    After uploading the new asp.net version of HowToDoThings.com various people noticed that they were often seeing the following error messages instead of the intended...
  • D4: Making TCheckbox Data Aware with TDBEdit

    Simple means of making some components data-aware. Alternative data-aware checkboxes (and radiobuttons) that can be arranged more flexibly.Although more recent...
  • ECO2 Expression Handles and the ASP.NET Repeater Control

    How do we databind the information from the ExpressionHandle or other handle type into the ASP.NET Repeater control? Took a little double take viewing, but Pete Morris...
  • ASP.NET forms authentication with roles

    Forms authentication does not allow roles authentication. This article explains how to implement it. Basic forms authenticationForms based authentication in ASP.NET is...
  • Composition is much better than inheritance

    This article explains the pitfalls of inheritance, and offers a solution...In this article I will have to use some ficticious class names etc due to the sensitivity of...
  • Composition and recursive OCL

    This article demonstrates a simple example of using recusive OCL within a composite pattern."To understand recursion we must first understand recursion"...
  • Code Derived Columns in ECO II

    Explains what Code Derived Columns are, and how to use them.The focus of this article will be "Event derived columns". Jan Nordén (Borland) pointed...
  • Tidy Component Library for Easy Migrations or Builds

    Controlling your Library Path can be benefitial for a number of reasons, easy reading, sharing network components/libraries, or even for escrowing projects.There is a...
  • Windows Search Engine

    Implementing Shell Search Handler using DelphiThe Shell supports several search utilities that allow users to locate namespace objects such as files or printers. You...
  • APIS behind Registry

    Know The Apis responsible o handle Windows Registry.|| APIs Behind Registry || By Nilesh Gore :- ng411002@rediffmail.com Here I’m describing the way of editing...
  • ASP.net losing your pound sign?

    Do you experience missing pound signs in your asp.net apps?Recently I developed a website for a friend, http://www.kstar-academy.comI noticed that his events had no...
  • How To store the contents of a RichEdit in an EMF files

    Howto store the contents of a RichEdit in an EMF filesSometimes, you may want to store the contents of a rich edit control in a metafile. This article outlines an...