[DUG] Access Violation

2011-08-14 Thread Marshland Engineering
Not sure where to go with this. I'm sending 3 bytes of data at 38400 baud every 500 ms. If I speed up the rate to every 250 ms I get Access Violation at address 004934CA in Mmodule Dyno.exe' Write address 00F2 Code if SerialPortNG.NextClusterSize = 0 then begin

Re: [DUG] HEX to decimal

2011-08-07 Thread Marshland Engineering
I finally got it working. The number of stop bits was wrong, that's why the first character was always correct and the rest incorrect. Final code if SerialPortNG.NextClusterSize = 0 then begin sRaw:=SerialPortNG.ReadNextClusterAsString; for i:=1 to length(sRaw) do

Re: [DUG] HEX to decimal

2011-08-04 Thread Marshland Engineering
Been there done that edit2.text := IntToStr(StrToInt('$' + sRaw)); Result '[' is not a valid integer. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi

Re: [DUG] Delphi Digest, Vol 94, Issue 7

2011-08-04 Thread Marshland Engineering
I still have something wrong I sending serial_send('B'); serial_send('C'); and a terminal program reads BC correctly My Delphi code is as below but something is wrong with the second character. if SerialPortNG.NextClusterSize = 0 then begin

Re: [DUG] HEX to decimal

2011-08-04 Thread Marshland Engineering
Adding more characters serial_send('B'); serial_send('C'); serial_send('D'); serial_send('E'); I get B(Tú 66 40 84 250 B(Tú 66 40 84 250 ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

Re: [DUG] HEX to decimal

2011-08-04 Thread Marshland Engineering
What version of Delphi are you using? Could the string be returned as a Unicode string? or is it an AnsiString?I'm using Ver 6 Apparently ORD works with 1 for the first character and not 0 just to be confusing !!! PS Using 0 returns a blank. ___ NZ

[DUG] HEX to decimal

2011-08-03 Thread Marshland Engineering
I cannot get the decimal equivalent of the number sent from my micro in Delphi !!! I am running and ATmega (micro) and it sends out a hex number corresponding to an A to D conversion. It is 8 bit. I'm using SerialNG to read the data with procedure TfDyno.SerialPortNGRxClusterEvent(Sender:

[DUG] mxarray.dcu not found.

2011-06-20 Thread Marshland Engineering
I have installed Delphi 6 and Absolute database on a slightly older machine. (3 years). When I opened a working project, it has an error, mxarray.dcu could not be found. I uninstalled and reinstalled Delphi and Absolute and same thing. I started and new project, complied, no error, added a

[DUG] RE Data validation.

2011-06-05 Thread Marshland Engineering
After a bit of experimenting, it seems that the OnValidate is triggered once you leave the dbEdit box and it is before the Post is committed. This means that you get a message directly after the box you have just entered the data into. This words great for data validation across many forms,

Re: [DUG] Validate data entry

2011-06-02 Thread Marshland Engineering
Form inheritance or Frames to cut down on the number of different entry points. The program is set of sequences for machining. A DBGrid displays the operations. On double clicking the DBGrid operation, opens a form with the relevant data and the graphics is displayed. The data entry points

[DUG] Validate data entry

2011-06-01 Thread Marshland Engineering
I'm entering quite a lot of data from different forms into a single database. I need to validate the data on each entry point on each form. If I use a OnKeyPress, I can write a routine to get what I want, but I would like to use the routine directly off the field in the DataModule and not on

Re: [DUG] Validate data entry

2011-06-01 Thread Marshland Engineering
Thanks for the reply. Write a procedure for the validation routine in the DataModule. Then call it from the OnKeyPress event in each form. I have about 20 forms and 10 -20 entry points on each form, so the OnKeyEvent looks like the long way round. The database is only 20 fields long but each

Re: [DUG] Mapped drives

2011-04-04 Thread Marshland Engineering
Hi Chaps Sorry I made a slight mistake. The remote PC's all connect correctly. It is the server that has the hiccup. I'm using absolute database and I get dbTT:Database file p:\TTabs\TT.abs does not exist. Once I view P: with windows explorer, the package works fine. P: is set to

[DUG] Mapped drives

2011-04-02 Thread Marshland Engineering
I'm mapping my data to a P: drive across a windows XP network. Whenever I start one of my networked PC's and I open my app for the first time, I get a drive error. If I open windows explorer and view the drives before I open the Delphi app, the app finds the data. It is almost like Delphi does

Re: [DUG] Contents of Delphi digest...

2011-03-13 Thread Marshland Engineering
Just wondering if there is a Tutorial on how to trim replies? I think highlighting the text and deleting works ? The last reply I read had 2 lines of new data and about 200 of repeated data. Cheers Wallace ___ NZ Borland Developers Group - Delphi

Re: [DUG] Christchurch Members

2011-02-24 Thread Marshland Engineering
We are in Belfast and have no quake damage (a few things fell over) If any needs assistance, showers, flushing toilet, roof, camping ground, electricity etc etc, give me a call Cheers Wallace 704 Marshland Road 3237449. ___ NZ Borland Developers

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Marshland Engineering
I have to say that the starter kit is on my list to purchase. It has more than I want right now and if I want more the potential is there. A Cut Down Version wont make me decide to buy a fully fledged version, because Id have no experience seeing if it does what I think it should. A time

[DUG] Inserting a picture

2011-01-23 Thread Marshland Engineering
I'm trying to insert a picture into a BLOB field, I found this on the web but I get an error Undefined TBlobField. if OpenPictureDialog1.Execute then begin TBlobField(dm.tblmed.FieldByName('Pics')).LoadFromFile(OpenPictureDialog1.FileName); end; Not sure what to do ? If anyone

[DUG] Tcalender

2011-01-22 Thread Marshland Engineering
I'm trying to use TCalender and I want to change the day's color if I have an appointment on that day. I'm linking this to an appointment database. Any suggestions ? ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz

Re: [DUG] Variabels stored

2011-01-20 Thread Marshland Engineering
Thanks for all the replies. I'll go through them all and see if I can get my head around them. I have to say that after a few months of programming in Dos/DbaseIII/Clipper, I hardly ever went back to the manuals and wrote a lot of varied and complex programs. (One being the management an

[DUG] Arc Solved

2011-01-19 Thread Marshland Engineering
The problem came in with the interpreation DELPHI The arc traverses the perimeter of an ellipse that is bounded by the points (X1,Y1) and (X2,Y2). The arc is drawn following the perimeter of the ellipse, counterclockwise, from the starting point to the ending point. Is the arc or the ellipse

[DUG] Variabels stored

2011-01-19 Thread Marshland Engineering
Is there a way to store variables so I can use them from one procedure to another? I have been currently storing them in hidden edit.text boxes on the form but there must be a better way. Cheers Wallace___ NZ Borland Developers Group - Delphi

[DUG] Arc's

2011-01-18 Thread Marshland Engineering
Is there an easy way of drawing an arc ? I have center, start and end co-ordinates as XY. From what I can see, I need to look at least 16 combinations to work out the perimeter size depending in which quadrant the start and ends are in. procedure Arc(X1, Y1, X2, Y2, X3, Y3, X4, Y4:

[DUG] Query grid column details

2011-01-10 Thread Marshland Engineering
I have an sql query. I have two db Grids on my form, one from the table and the other a query from the same table with conditions. The dbgApp is a standard db grid and the dbgQApp is a query on the table App. It all works correctly until I modify the query columns properties. If I use the

Re: [DUG] Company closing

2010-11-29 Thread Marshland Engineering
After completing Engineering at UNI, I felt that I had learned the skills to solve problems and I agree with I'm firmly of the belief that for a good developer the toolset being used is irrelevant. (I however found OO quite difficult to get into. ) The problem with software packages is that

[DUG] Delphi 4 and 6 on the same computer

2010-11-11 Thread Marshland Engineering
Do you know if I can run 4 and 6 on the same computer. I need to 'upgrade' my projects. I did try it on an old computer but the mouse almost froze going over the open form. Elsewhere the mouse worked fine. Cheers Wallace ___ NZ Borland Developers

[DUG] Video Editing

2010-11-10 Thread Marshland Engineering
As with most packages, as they develop they we get more and more of goodies we don't want. I have 50 hours of video taken over 10 years which I would like to store on my computer. They vary from 8mm video, DVD's MOV and AVI's. I have tried 8 or so different programs all with some success

Re: [DUG] Delphi Specials

2010-10-21 Thread Marshland Engineering
Quote As a user of both Delphi 5 and D2007, you would have to be nuts to want to work in D5 if you spend any time programming. It works, and quite well, but D2007 and later are so much nicer, and faster to do stuff.If you value your time and are programming for anything returning money

Re: [DUG] Delphi Specials

2010-10-21 Thread Marshland Engineering
A bit of hot topic !! I would like to get an upgrade to keep current, but I only want the hamburger please. I also don't want an EXE that 5 times as big for the same program and complies in 3 times the time. I have two sets of neighbours with young kids. How do I get them to start

[DUG] Delphi Specials

2010-10-20 Thread Marshland Engineering
I keep seeing all these specials, but for the 2-3 programs I write a year, Delphi 4 does the trick. It looks like Embarcadero keeps itself going with existing customers (which over time will diminish) with upgrades. Now if I was starting out from fresh, would I spend $3499 when there is a

Re: [DUG] Reading data from a USB

2010-08-12 Thread Marshland Engineering
I'm working with and Arduino Freeduino board and when the USB board is connected, it adds a Com5 port. My existing software (serialNG) reads Comm5 and all the data transfer just works. Something easy for a change. Thanks Wallace. ___ NZ Borland

[DUG] Reading data from a USB

2010-08-11 Thread Marshland Engineering
I'm working with a data logger and currently get my data from it through an RS232 port. Anyone used the USB for retrieving data and if so how ? ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

[DUG] IntToBin

2010-06-21 Thread Marshland Engineering
Hi Chaps I found this on the web and it works but I don't understand how ? Can anyone explain it ? function IntToBin ( value:Integer; digits: integer ): string; begin result := StringOfChar ( '0', digits ) ; while value 0 do begin if ( value and 1 ) = 1 then result [

[DUG] XP Parallel Port software.

2010-06-07 Thread Marshland Engineering
I found this page over the weekend and it works well. http://www.sixca.com/eng/articles/pardel/ Nice graphics, free and simple. Cheers Wallace___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

[DUG] LPT Porgramming

2010-06-04 Thread Marshland Engineering
I have quite a number of cordless tools and two way radios. I want to use the parallel port to control my hardware to make a battery reconditioner. NiCd and NiMh. I'm looking for an easy programming solution. Should I stick to Windows98 and have direct access to LPT1: or XP and add in the

[DUG] DXF Delphi

2010-03-20 Thread Marshland Engineering
Has anyone used a DXF viewer in Delphi ? I need to view a DXF file and then be able to click on items and retreive the coordinates into my Delphi Code. ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

[DUG] Run Function called from a database field's data.

2010-03-04 Thread Marshland Engineering
I have 9 function routines that are used by several forms. I have a database with 9 records that has specific data for each function. If I select record 4 for example, how do I run a function where it's name is within the database field called FUNC. tbl.Oper.feildbyname['Func'].AsString has

[DUG] Color in RichEdit

2010-02-09 Thread Marshland Engineering
I have 9 quite a complicated hex to human readable routines. I'm trying to improve the readability of the data by colors. How can I imbed color commands in a concatenated string 'before' I add the line of data to the RichEdit component? Data

[DUG] Tables

2010-02-04 Thread Marshland Engineering
I'm using Absolute database for my Delphi database applications. For what I see, it works much like MS access. I randomly get file locked when editing data . To be honest I have not really got my head around editing and posting. I have several DBGrids showing the same table in several forms,

[DUG] Silly mood.

2010-02-01 Thread Marshland Engineering
While we are in a silly mood, why don't programmers answer personnel problems on line. Dear John I was busy typing away at the computer, doing the family monthly accounts. Something that takes me hours each month. The all of a sudden out the blue, I get a blue screen and nothing works

[DUG] Checksums

2010-01-21 Thread Marshland Engineering
Does anyone know about checksums ? I'm reverse engineering some CNC code and I can't seem to find out how it works. R2230223010499B9F900031367D94000277F4F00 R2230223010499B9F900031367D940004F7F2700 Note the format seems to

[DUG] User Group

2010-01-20 Thread Marshland Engineering
Hi All I am a member and read the submissions, but from what I have seen, most of you have been programming in Delphi for may years and often your questions are specific to certain area's so not everyone can reply. I'm a Delphi newbee and program for 'hobby'. I tend to use the Delphi Page

[DUG] Setting tabs on a printer

2009-12-07 Thread Marshland Engineering
I can't send a tab setting to the printer The routine works with a memo but fPrn.Handle gives and error. Something to do with fPrn and system.text procedure TfMain.puExpListClick(Sender: TObject); var fPrn: system.text; TabArray : array[0..4] of integer; begin TabArray[0] := 350;//

[DUG] Editing date from two tables

2009-12-06 Thread Marshland Engineering
I have a table called tblJob. I have two dbgrids displaying the data from tblJobs, tblJobByCustomer and tblJobByDay. I have an editing Form for changing the data using dbEditBox's. How can I use the same Form for editing both tables ? It's like I need to set the form property to the

Re: [DUG] Program screen video capture

2009-08-21 Thread Marshland Engineering
One I found quiet good is Capturewiz http://www.pixelmetrics.com/ Cheers Wallace___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to

[DUG] Just for the odd job.

2009-07-15 Thread Marshland Engineering
I have been using Delphi 4 for the few projects I have. Embarcadero Technologies are a offering 2 for 1 purchase. Why is Delphi 2009 - Professional Upgrade and Delphi 2007 for Win32 R2 Professional Upgrade both the same price. Is it worth the upgrade. From what I understand 2007 and 2009

[DUG] Serial port data capture

2009-07-08 Thread Marshland Engineering
Hi have used SerialNG very successfully to send data to a CNC lathe. Free and some great examples. http://www.domis.de/cms/index.php?module=ContentExpressfunc=displayceid=7 Cheers Wallace___ NZ Borland Developers Group - Delphi mailing list Post:

Re: [DUG] Delphi Developers wanted

2009-06-29 Thread Marshland Engineering
I can still remember Fortran and punch cards. Seems absurd in today's standards. How they got to the moon with punchcards, I'll never know. I'm wondering how many programmers are dyslexic? (Who ever decided to use the word Dyslexia for Dyslexic people should be shot) I do think that we seem

[DUG] DBCombo/DBLookup Combo

2009-02-19 Thread Marshland Engineering
I had problems with the source data being changed when I used a lookup. I created a manual lookup table and found the same problem. Looks like the record pointers got mixed up when using 2 tables. I fixed the source file over 20 times but I could not duplicate the key strokes that created the

[DUG] Create new table from existing one.

2009-02-17 Thread Marshland Engineering
I am using Dbase tables and when I create a new table from and existing one, the real number fields are being created as equivalent to integers. I was using TDBF from Sourceforge, so I reverted back to Delphi's own tables and I have exactly the same problem. Using the Database desktop with the

[DUG] To post or not to post.

2009-02-14 Thread Marshland Engineering
I'm having problems with editing and posting records. Sometimes when I edit a field, I get 'Not in edit mode' Is this logic correct ? I have two files. Senario 1 I remain on a single record for this operation Is this correct when I call a new form ? Using the OnCreate event of the new form,

[DUG] Chart Software

2009-01-19 Thread Marshland Engineering
I'm looking for simple chart software. I need to plot up to 6 straight line graphs and be able to print. I've tried ChartFX, but there is very little information around on how to use it. I can't find out how to add data to it. I also see there have been quite a few issues with it as well.

[DUG] Floating Point Overflow

2009-01-19 Thread Marshland Engineering
I have tried this program 3 times now with the same results. I have a few calls from and Analog to Digital Data unit using their ActiveX Controls but once I add a graph (ChartFX) and close Delphi4, when I reopen the project I get Error Creating form :Floating Point Overflow I can run the

[DUG] Dragover

2009-01-08 Thread Marshland Engineering
I'm back with my graphics. Graphics32 seems a bit complex for me at the moment. I found Dragover. This looks like it will do my trick. I'm drawing lines on the screen by incrementing it's length to give a feeling of movement. The problem is when the screen is full or a line is overtracing

[DUG] Layers with draw or paint

2009-01-05 Thread Marshland Engineering
I'm trying to simulate a CNC machine. I have the graphics derived from my CNC code working but would now like to add a tool shape. How do I float a shape over a canvas. What I think I need is layers where image on the top layer floats over the bottom image. The other option is record the

[DUG] Bookmark

2008-12-16 Thread Marshland Engineering
I have a strange problem. I have a dbgrid and am moving records up and down with buttons. (Delphi4) The routine works If I uncomment the bookmark, it displays wrong figures in the seq and seq2 columns on the record I was moving. If I move a line and close the application, reopen it, the

Re: [DUG] Printing extened Character set.

2008-12-05 Thread Marshland Engineering
I'm tying to print '═ ' or #205 on a laser printer. It prints out some other character. I have tried setting the Character set to PC-8 with #27+'(27U' but it prints a box and (27U'. Any Suggestions. PS If I print to PDF I get the same as the laser.

Re: [DUG] Database sequence sort

2008-12-05 Thread Marshland Engineering
I have a dbGrid on the screen with about 20 operations. I need to use an up or down button to change the sequence of operations. I can't work out a routine that will perform the function. ___ NZ Borland Developers Group - Delphi mailing list Post:

[DUG] Dbase File Data Update

2008-10-26 Thread Marshland Engineering
I am trying to increase a value in a dbaseIII file. When I press the Inc button, the referenced dbEdit field increases with each click. However on exiting the program, the tblData['Jobno'] does not reflect the new value. From data module. begin tblData.open; end;

[DUG] Where am I in a file (dbf)

2008-10-22 Thread Marshland Engineering
I have two files. The second file is linked to the first. I'm trying to check if I am on a valid record when I open the second file. If I'm on a valid record, I return the correct record number with recno. If not I get 21474836. Where does this number come from? The problem is that if I try

[DUG] Dbase III

2007-05-14 Thread Marshland Engineering
I have 3 problems. 1 If I modify a dBase III file using a Table, dBase III will no longer read the file. 2 If I insert a record, it always appends the record. 3 If I display the recno, the deleted records appear to still be there but not shown so the recno are not sequential. In dBase, there

[DUG] Serial Comms

2007-04-20 Thread Marshland Engineering
I see there are a number of Comms programs on the web on offer. Any suggestions on which one to use? I need to send Text down one of the serial ports. It will need to work with XP. Thanks for the help, I have the memo file working. Thanks Wallace

[DUG] Memo files Lines

2007-04-19 Thread Marshland Engineering
Hi I'm just starting with Delphi. I need to read a text file (G-Code for CNC) and write a conversion process to a produce a different text file format. I can read the file into a memo but I need to know how many lines I have read to process it. I can count them if there is an end of file