🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.components.misc
Article #11

Re: Data Entry problem

#11
From: Jamie
Date: Fri, 11 Jun 2004 19:55
47 lines
2516 bytes
not sure what your looking for but maybe a record is what you want.

Type
  TypeSet =(String, Numeric, data, etc);
  MyRecord = Record
   name:string[128];// fixed 128 charactor string.
   SortName:String[128];
   ModeType:TypeSet;
   Range:Array[0..1] of integer;
   Mandatory:Boolean; // maybe?
   PermittedChars:String[MaxLengthNeeded?]; // must load this field from 
and out side source
   etc...
  End;

Just a thougght//

noproblem wrote:

> I am porting a VB application in Delphi.
> It has a very complex settings section, with more than 700 values to be
> inserted in various forms.
> 
> In VB I made a centralized declaration of these fields - say an array of
> field descriptors.
> So every field has:
> - a name ( to be shown in the form)
> - a short name
> - a type (string, numeric, date, ecc.)
> - a range (min, max)
> - a mandatory property
> - a set of permitted characters (for string fields)
> - an SQL type (for creating a table in DB)
> - an SQL field name (for creating a table in DB)
> and so on...
> 
> Then I associate every field (say TextBox) in the form with one of these
> field descriptors, and a special set of routine let the form work fine,
> magically!
> 
> I was wondering what to do with delphi about this subject.
> Can anyone suggest me a suite of components (freeware or open source) or a
> different approach to do this porting?
> Thanks in advance
> Noproblem
> 
> 
Technical Details
Message-ID: <10cjnos8e7qb44b@corp.supernews.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!sn-xit-02!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <ca5b2b$38t$1@lacerta.tiscalinet.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d99,a672fd3869419c76
X-Google-Thread: f894d,a672fd3869419c76
X-Google-Attributes: gid109d99,gidf894d,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!sn-xit-02!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Jamie <jamie_5_not_valid_after_5_Please@charter.net>
Newsgroups: comp.lang.pascal.delphi.components.misc,borland.public.delphi
Subject: Re: Data Entry problem
Date: Fri, 11 Jun 2004 12:55:22 -0700
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <10cjnos8e7qb44b@corp.supernews.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <ca5b2b$38t$1@lacerta.tiscalinet.it>
In-Reply-To: <ca5b2b$38t$1@lacerta.tiscalinet.it>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@supernews.com
Lines: 48