Hi,
Try putting something like this into your script:
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
  showmessage(towords(form1.edit1.value));
end;

procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean);
begin
  form1.edit1.Text := towords(form1.edit1.value);  //*** USD is the default currency - it can be changed as per the example below
//  form1.edit1.text := replacestr(form1.edit1.text,'dollars','pounds');
//  form1.edit1.text := replacestr(form1.edit1.text,'dollar','pounds');
//  form1.edit1.text := replacestr(form1.edit1.text,'cents','pence');
//  form1.edit1.text := replacestr(form1.edit1.text,'cent','pence');
end;

See attached example,
Derek

1,552

(32 replies, posted in General)

Hi Adam,
Just seen your post about adding multiple projects.
Using the example that EHW and I put together, I'd bolt another table onto the structure and then just modify the forms, where relevant.
See attached (the icon top left displays available projects and allows maintenance).  After that, task maintenance is done within each quadrant.  Re-assigning priorities is now done solely by drag-and-drop).
Derek.

1,553

(1 replies, posted in General)

Hi Dustin,
It's possible to import data into MVD either directly from Excel or as a CSV saved from Excel.  How easy it is depends on your data structure but it's a one-off set up and after that, you just click a button.
But it might be worth you investigating MVD a bit further - entering data directly into MVD doesn't have to take any longer than Excel (it could just be the familiarity of Excel over something new).
You can actually use MVD rather like Excel with an editable tablegrid (but you wouldn't really be playing to its strengths).  Depending on how you structure your application and how you design your forms, data input can be quick and data validation is relatively easy to set up.
Attached is a dummy project that I knocked up to give you a quick feel for things you can do with MVD.  Just open the .vdb file in MVD and then run it.
I've arbitrarily shown a left hand tablegrid with School Weeks and a right hand tablegrid with Pupils.  Click on rows in either tablegrid to display the relevant information in the middle tablegrid.
I've chosen to enter data by school week no' - to add a record, just click the 'add' button and select from the comboboxes (which are all searchable so, for example, just typing a couple of characters quickly finds the relevant entry).
Hopefully, this gives you some ideas,
Regards,
Derek.

1,554

(32 replies, posted in General)

Hi EHW,
I couldn't work out how you were doing the 'dragging' (but in effect, you're not!) - it's taking whatever row is highlighted in whichever grid and then using the 'on mouse up' to work out your current location - then you change the priority status accordingly and allow the filter in each grid to do the moving.  Conceptually (and in practise), it's really effective.  Nice one.
The only 'extra' I could think of is, on mousedown, to change the cursor from 'crdefault' to 'crdrag', but it's purely cosmetic.
Thanks for your input,
Derek.

Hi Jean,
Glad to be of help.
You can also do the same thing in a script - for example 
sqlexecute('select firstname||" "||lmiddlename||" "||lastname||" "||email from people where id ='  etc etc) which can avoid lots of 'selects' and then joining fields together.
Of course, if you use this to output to a tablegrid, you then need to loop through the tablegrid, so a calculated field is often simpler.
Derek.

1,556

(32 replies, posted in General)

Hi Adam,
Must be quite a few ways of creating an Eisenhower Matrix.
The simplest would probably be just a form with 4 memo fields, each one corresponding to a field in a table.
In the attached, I've used 4 tablegrids as it's easier to separate out discrete tasks and you can then just move them from one quarter to another by changing their priority;  the script is purely for cosmetic stuff / ease of use so you could get away without it.
I haven't done so (as you don't usually specify dates in an Eisenhower Matrix, from what I remember) but it would be easy enough to add date/time fields to the 'tasks' table and show these on the grids.
Derek.

Hi,
The easiest way is to use a calculated field to concatenate the first and last names (see attached)
Derek.

1,558

(8 replies, posted in General)

Hi Yandi,
As Sibprogsistem wrote, if you want to see 'age' in the tablegrid, use a calculated field.
If you also need to see 'age' change real-time on the form where you enter the date of birth, you also need to use a script.
Perhaps try it like this (see attached).
Derek.

1,559

(7 replies, posted in Reports)

Hi Kristof,
Not sure without seeing the actual project, but can you copy the company information that you need to show to calculated fields and then use the calculated fields in the report?
If not, I think you might have to use reportsql rather than report.
Derek.

Hi Kristof,
I've done that before but have just been able to re-create the relationship with no trouble.
If you attach your project and indicate the tables / relationship you want to re-establish, maybe someone can have a look.
Derek.

Hi Kristof,
If you can attach the project and indicate the newly added field, I can have a look and see if I can spot anything.
Derek.

1,562

(7 replies, posted in General)

Hi Dmitry,
EHWagner has reported that your download is displaying highlighted date ranges correctly on his system so it seems that it might be an issue with Windows XP.  I'd appreciate it if you could check this out. 
But if there is no easy solution, then there's no need to investigate any further;  it's not fair to you or other users to spend time on fixing a problem that may only be affecting me.
Thanks,
Derek.

1,563

(7 replies, posted in General)

Hi EHW,
I was hoping someone else would be able to check it out with their configuration.  I'm suspecting that it might be an issue specific to Windows XP.
Thanks for your help,
Derek.

1,564

(7 replies, posted in General)

Hi Dmitry,
I downloaded your application to test and the result is the same (there is still a white bar between the start and end dates).
Please see attached screenshot.
Regards,
Derek.

1,565

(7 replies, posted in General)

Hi Dmitry,
Please see the attached screenshot.
The white bar between the start and end dates makes the dates unreadable.
I'm using MVD5.5 / WindowsXP
Thanks,
Derek.

1,566

(7 replies, posted in General)

Hi Dmitry,
Is it possible to change the way in which a selected monthcalendar date range is highlighted?
The current display is a white bar which makes the dates unreadable and  not very user friendly..
Would something like the attached screenshot be possible?
Thanks,
Derek.

1,567

(4 replies, posted in General)

Hi Terry,
Is the attached the sort of thing that you mean?
Personally, I think it would be more readable if the highlighted colour extended across the entire selected date range rather than 'whiting it out' but I think that's something that Dmitry would have to review - I remember trying to change it a while ago but had no success.
Derek.

1,568

(7 replies, posted in General)

Hi,
Sorry, I've never done anything like POS before.
Derek.

1,569

(4 replies, posted in Script)

Hi Hedan,
Not sure if I understand your question correctly, but does the attached help at all?
When you display your combobox, you can concatenate a number of fields together (enclose each one in { }). 
So in your example, you can show both the record id and the country.
If you then make the combobox searchable, when you add or edit, you can either enter an ID or value to select the correct record.
Derek.

1,570

(7 replies, posted in General)

Hi Raheel,
Is this the sort of thing that you want? (see attached)
Derek.

1,571

(6 replies, posted in General)

Hi Agusecc, Dmitry,
An alternative might be to use a calculated field to show the day of the week.  Then the calculated field can be used in your report just like any other data fields.
Please see the attached as a simple example.
Regards,
Derek.

1,572

(5 replies, posted in Russian)

Привет Sibprogsistem,
Это помогает?
С уважением,
Derek

1,573

(2 replies, posted in General)

Hi Manix,
If I understand your question corrrectly, putting the 'onchange' event against the calculated field itself won't work because a calculated field, by definition, can only change if the fields involved in its calculation are themselves changed - the 'onchange' event needs to be placed against these fields, not the calculated field. 
Please see attached which uses a small script so you can see the changes to the calculated field real time.
Regards,
Derek.

1,574

(4 replies, posted in General)

Hello Manix,
Make sure that the 'show hint' checkbox object is unchecked and that the 'hint' property is empty (see attached screenshot).
Regards,
Derek.

Привет,
Попробуйте это так:
(select round((x+y-z) * (a/b),2)).
Посмотрите на этот простой пример.
С Уважением,
Derek.