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
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
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
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
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:
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
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:
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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:
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 [
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:
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
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:
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
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
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,
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
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
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
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;//
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
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
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
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:
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
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
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
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,
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.
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
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
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
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
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.
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:
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;
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
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
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
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
63 matches
Mail list logo