Board index » delphi » Newbie Needs Simple Answers on Delphi

Newbie Needs Simple Answers on Delphi

    Hi folks,
I'm new to Delphi, not programming.  I need to know these simple issues when
working Delphi before I commit to Delphi3.

1.)  For example:  Say I have a sales order that has a line item called
"MyWidget (Product# 123)" and I sell a qty. of 3.  How can I get that record
in the products database and tell it to reduce inventory by 3(qty.)?

2.)  Can I export records from a .dbf to an ascii file?

3.)  Is there a way to run an external .exe from a Delphi program, say for
example:  MyExe.exe or notepad.exe, etc,etc?

Please excuse these simple questions, it's just that I've been reading Marco
Cantus' "Mastering Delphi 3" and the support for these items above is not
documented very well, not to mention the books that came with Delphi 3 pro.

Thanks in advance,
Don

 

Re:Newbie Needs Simple Answers on Delphi


Without going into details, I suppose that's not the issue here, these
are all things that can be done rather easy in Delphi.

The inventory-problem: the tTable component has several methods to
assign procedures to check / edit  other tables.

With Batchmove you can easily export to ascii files, and starting
another exe is a standard Winapi call.

If you want details, please mail me

HTH, Eric

Quote

>Please excuse these simple questions, it's just that I've been reading Marco
>Cantus' "Mastering Delphi 3" and the support for these items above is not
>documented very well, not to mention the books that came with Delphi 3 pro.

>Thanks in advance,
>Don

Re:Newbie Needs Simple Answers on Delphi


Quote
>1.)  For example:  Say I have a sales order that has a line item called
>"MyWidget (Product# 123)" and I sell a qty. of 3.  How can I get that record
>in the products database and tell it to reduce inventory by 3(qty.)?

You proabably will have a ttable set to the inventory table linked to the
product number field.  This way the correct inventory record will always be
current.  You can put code in the lineitem table's AfterPost method to handle
updating Inventory

Quote

>2.)  Can I export records from a .dbf to an ascii file?

Yes

Quote
>3.)  Is there a way to run an external .exe from a Delphi program, say for
>example:  MyExe.exe or notepad.exe, etc,etc?

Yes

--
Brian Bushay (TeamB)
Bbus...@DataGuidance.com

Other Threads