1

(3 replies, posted in General)

Thanks Dmitry. Im stuck with version 1.42 for testing purposes. Any other way?

2

(3 replies, posted in General)

How can one force entry of numbers only in a textbox? Thanks

3

(5 replies, posted in General)

Thanks Dimitri, wish one could retrieve the whole record once without 3 SQL calls to database.

4

(5 replies, posted in General)

Thanks Dimitri

Problem is I am working on testing in version 1.42 beta. Is there a work around so I can do it? I just need to put database values in label captions?

5

(5 replies, posted in General)

How can I put SQL result in variable and then read each value from variable.
Example
myvariable  := SQLExecute('SELECT Contracts.id, Clients.company,Contracts.contractno,Products.prodname FROM Contracts INNER JOIN clients ON clients.id = contracts.id_clients INNER JOIN products ON products.id = contracts.id_products WHERE Contracts.id = 2');
showmessage(first value in myvariable);
showmessage(second value in myvariable);
showmessage(third value in myvariable);

Thanks for help

6

(2 replies, posted in General)

Fixed. Was problem with copy and paste of sql statement. Strange. Thanks anyway.

7

(2 replies, posted in General)

Hi

When would one get this error? I have re-created the tables and forms and error still appears.

Thanks for help. Using 1.41 & 1.42 beta

8

(2 replies, posted in SQL queries)

Perfect. Thank you very much

9

(2 replies, posted in SQL queries)

Please help with last WHERE clause for custom search using SQL. When date control is not selected (checked), that field should be ignored but if selected the date field must be included.

SELECT
Dispatches.releaseno
,strftime('%d/%m/%Y', Dispatches.loaddate)
,Dispatches.truckreg
,Clients.company
,Products.prodname
,Contracts.contractno
,Dispatches.id

FROM
Dispatches

inner join Contracts
on Dispatches.id_Contracts = Contracts.id

inner join Clients
on Contracts.id_Clients = Clients.id

inner join Products
on Contracts.id_Products = Products.id

WHERE
(case when '{edReleaseNo}'='' then 1=1
else Dispatches.releaseno = "{edReleaseNo}" end)
and
(case when '{edTruckReg}'='' then 1=1
else Dispatches.truckreg = "{edTruckReg}" end)
and
(case when '{edContractNo}'='' then 1=1
else Contracts.contractno = "{edContractNo}" end)
and
(case when {cboProduct}=-1 then 1=1
else Contracts.id_Products = {cboProduct} end)
and
(case when {cboClient}=-1 then 1=1
else Contracts.id_Clients = {cboClient} end)
and
(case when {dtLoadDate} // IS NOT SELECTED // then 1=1
else Dispatches.loaddate = {dtLoadDate} end)                                                                                   
;

Thanks

10

(5 replies, posted in General)

Please look at project already attached above -- but I will also email to you. Thanks.

11

(5 replies, posted in General)

I want to show some field values from table of parent record on the edit form of detail table in read-only. But how do I assign field values to edit boxes or captions of label control?

Thanks

12

(5 replies, posted in General)

Thank you. Of course - the ParentComboBox property does it.

13

(5 replies, posted in General)

I cant get 2 linked lists/comboboxes on frmEditEmpskill in attached project to work. When user selects an Organisation, only the Skills linked to the selected organisation must show in Skill combobox. Please have a look. Thanks

14

(1 replies, posted in General)

how to show two or more columns from table in combobox?

Thanks for your help

15

(1 replies, posted in General)

Few questions, please:
What is the current official version?
When will the unofficial version become official?
And what are the new features we can look forward to?

Thanks

16

(6 replies, posted in Script)

Thank you. Enjoying your project very much. Please keep it up and more versions coming. :-)

17

(6 replies, posted in Script)

Thanks. Which Delphi control is used for the tablegrid in VDB? I want to learn its methods and properties.

18

(6 replies, posted in Script)

Perfect. Thanks. Which standard Delphi control are you using in VDB? I need to read up on the object properties and methods.

19

(6 replies, posted in Script)

Please help with correct syntax/properties....

procedure frmDictionary_gridGender_OnCellClick (Sender: string; ACol, ARow: Integer);
begin
     frmDictionary.edGender.Text := frmDictionary.gridGender.(value in the selected grid cell)

end;

Grid has only one column named 'gender'

Thanks

20

(14 replies, posted in Script)

thanks, will look at Delphi stuff. What is correct syntax also to clear a tablegrid control, e.g.

frmEmployees.gridEmployees.List.Clear();

21

(14 replies, posted in Script)

Under object inspector I discovered the "events" tab for the form controls. Double click next to event and it will create procedure header in the script.

22

(14 replies, posted in Script)

Thanks. Its great. Exactly doing what I needed. Where can I get info about control events/procedures and parameters?

23

(14 replies, posted in Script)

Please give example of script to clear/empty text box on Search form when user click button bClear. Thanks. Where does one enter the script?