thank you so much guys
2 2021-02-25 20:54:40
Re: Increment date years (11 replies, posted in Script)
Hi,
You could try it like this (see attached).
Derek.
Hi Derek,
I'm still using the good and old 1.44 free version
I'm a beginner, i stop working with this for a while but now I'm trying to understand and learn again.
Can you post the code here please?
3 2021-02-25 18:26:17
Re: Increment date years (11 replies, posted in Script)
Just another question if someone can help me,
Can anyone help me with a code to do this:
I have a form with two dates and 1 combobox, in this combobox i have already 3 options ( 1year, 5years,10years).
What i need to do is select a date in datetimepicker1 and then choose one of this three options from combobox and then the datetimepicker2 will show the new date with the increment of the years that we choose based on datetimepicker1.
4 2021-02-25 18:11:37
Re: Increment date years (11 replies, posted in Script)
Thank you so much guys
5 2021-02-24 23:17:29
Topic: Increment date years (11 replies, posted in Script)
Hello,
I found here on the forum this script
procedure frmFornitore_dtData_OnChange (Sender: TObject);
begin
frmFornitore.dtScadenza.date := frmFornitore.dtData.date + 30;
end;
I understand what it does, but my question is how can i change it to increment in years not in days? I know that i can do it by write 365 instead of 30, but what if i want a 10 years increment?
Thanks
7 2016-03-09 19:23:36
Topic: Memo max lenght (3 replies, posted in General)
Can anyone help me with a doubt that i have?
I know how to make a funcion for a Memo for max.lenght of characters.
But how can i block a memo for a max lengh of characters for the size of the memo window?
8 2016-03-08 21:56:08
Re: DBImage from one form to another (4 replies, posted in General)
i guess the solution would be with Form1.DBImage1.LoadFromDatabase('tablename', 'fieldname', 4); like an example that i saw in forum.
10 2016-03-08 09:37:30
Re: DBImage from one form to another (4 replies, posted in General)
the reason for this is because in form2 i have a report button and i need to pick the DBImage from form1.
11 2016-03-08 09:30:57
Topic: DBImage from one form to another (4 replies, posted in General)
hello,
i have a DBImage in Form1 and i want that picture in Form2 when i save Form1, how can i do that?
12 2016-03-04 09:26:47
Re: ComboBox Onclick to TableGrid (4 replies, posted in Script)
i already adopt other method, thanks
13 2016-03-02 23:30:20
Re: ComboBox Onclick to TableGrid (4 replies, posted in Script)
What I want is to have two combobox and one tablegrid in a form, those comboboxes have more than one choices, and i want that every time i click in one or the other combobox it will display that information in tablegrid for me to store wit a save butto later.
For example:
Combobox1 has:
Test1
Test2
combobox2 has:
Test3
Test4
So if i click on Combobox1 in test2 and in Combobox2 test3 and after click in test4 the tablegrid will display:
|Combobox choices|
Test2
Test3
Test4
14 2016-03-02 09:20:12
Topic: ComboBox Onclick to TableGrid (4 replies, posted in Script)
Can anyone help me do an onclick event to send a combobox information to a tablegrid when i click on it?
15 2016-02-21 17:56:54
Re: TableGrid Filter (4 replies, posted in General)
where do i aplly those filters? can you help me with a little program example? just something for i better understand.
16 2016-02-20 19:25:26
Topic: TableGrid Filter (4 replies, posted in General)
Hello,
I'm here faced with a question that i do not know how to solve.
I have a database that I have two forms, one of them every day i put information on it including the date of that day with datetimepicker, in another form i have a tablegrid where I have some information of the other form.
The problem is that every day will be a new line on the form where I have tablegrid, after a year will be 365 lines and so on .. making it difficult to search for a particular day.
What I wonder is if I can group the tablegrid for months of the year, that if i open for example February 2016 appeared the records that i made this month.
17 2016-02-17 21:49:42
Re: [Report] Display an image in a report when using the LinkFile (2 replies, posted in FAQ)
can you explain to me me the advantages and disadvantages of using the link file?
18 2016-02-17 21:31:14
Re: Two questions - Textbox and spell checker (4 replies, posted in General)
no problem thanks
19 2016-02-16 19:20:39
Topic: Two questions - Textbox and spell checker (4 replies, posted in General)
Hello,
how can i limit the number of characters of a TextBox?
is it possible to have a speel checker like we have on MSWord with the hints for those words that we wrote wrong?
20 2016-02-16 13:29:15
Re: Database Backup (2 replies, posted in Script)
Thanks, i guess i will choose the windows option
21 2016-02-15 22:10:51
Topic: Database Backup (2 replies, posted in Script)
hello,
after i see this project :
http://myvisualdatabase.com/forum/viewtopic.php?id=1438
i was wonder if there is a way of we can do the automatic backup every day 1 of every month? instead every 3hours
22 2016-02-15 19:55:12
Re: Time instead of DateTimePicker (5 replies, posted in General)
tanks derek is that what i was looking for i thought that that was only a checkbox for the actual time lol
23 2016-02-14 21:47:12
Re: Time instead of DateTimePicker (5 replies, posted in General)
hello ,
thanks for your help but this option only let me choose the actual time, and that is not what i want, i want be able to choose any time of the day.
24 2016-02-14 14:34:38
Topic: Time instead of DateTimePicker (5 replies, posted in General)
Hello,
is there any way to get something like DateTimePicker but for we can choose time?
for example have something like DateTimePicker or ComboBox but we can choose 20:00pm or something like that.
can we do it by script or there is any trick with buttons?
25 2016-02-11 23:16:35
Re: Groupbox, combobox and images (7 replies, posted in General)
Thanks for your help once again.
Another question, i have several combobox with i can insert new items to then, but i have some that i just need them to have Yes and No options, for i dont need to have a new record button..etc to insert them at the first time to these combobox, how can i insert by script default values in the combobox?