Page 2 of 2

Re: First topic, please help with little project

Posted: Thu Jul 18, 2013 11:51 am
by esgici
dragancesu wrote:Now I have a problem with date, I've want date format like GERMAN type which should show date in dd.mm.yyyy but not so. Datepicker shows how it wants
How is it defined? Or to make the conversion date-string?
As far as I observe, Date Picker control don't obey project's date format settings. Most probably it use date format of system (OS, Windows).

I guess this may be confirmed by changing OS's regional settings.

This is screen shoot of <hmg>\SAMPLES\Controls\DatePicker\DATEPICKER\Demo.prg:
HMG DatePicker Demo screen shoot
HMG DatePicker Demo screen shoot
HMG DatePicker Demo.JPG (12.27 KiB) Viewed 4236 times
Turkish national date format is : DD.MM.YYYY

Re: First topic, please help with little project

Posted: Fri Jul 19, 2013 1:02 am
by esgici
Hi All
esgici wrote:...
I guess this may be confirmed by changing OS's regional settings.
...
Tried and confirmed;

When changed date format in OS ( Windows ) settings ( via Control Panel of Windows ),
date format of DatePicker control of HMG too changed according the system setting.

TIA :D

Re: First topic, please help with little project

Posted: Fri Jul 19, 2013 5:52 am
by dragancesu
Thanks for your reply, I tried and saw datepicker shows the date as defined in the contol panel
For years I use clipper and I was surprised that a set date is not responding, now it's all clear, but I think it would be reported, perhaps as a bug

Re: First topic, please help with little project

Posted: Fri Jul 19, 2013 11:06 am
by esgici
dragancesu wrote:... but I think it would be reported, perhaps as a bug
This isn't a bug, but a feature :arrow:

As the developer, you haven't need to struggle about date format of your users;

whatsoever date format of your users, your application run with true format depending on user's system setting;

if user want change date format in your application, it will be sufficient changing system setting, without
turn to you 8-)

What more do you want?

HMG is superb :D

Re: First topic, please help with little project

Posted: Tue Jul 23, 2013 5:23 pm
by tonton2
good evening
when I want to delete a record in your example (client.rar), I receive this message
how to remedy please

Code: Select all

Procedure SUPRIMER()
		
		*------------------------------------------------------------*
		  If MsgYesNo ( 'Vous étes Sur de vouloir Supprimer ce Client')
			If Client->(FLock())
			  Delete 
			   Win_1.Browse_1.Delete
			   Win_1.Browse_1.EnableUpdate()
			   Win_1.Browse_1.Refresh
			  Unlock
			endif  
		  EndIf
		Return

Re: First topic, please help with little project

Posted: Wed Jul 24, 2013 11:10 am
by esgici
Salam Aleyk Tabet

Please look at here, I hope will be useful :)

maassalam

Re: First topic, please help with little project

Posted: Tue Aug 27, 2013 6:51 pm
by tonton2
Bonsoir tout le monde
Mon probleme est que lorsque j'utilise une variable interne a la procedure voir example c'est ok mais quand j'utilise une variable ,appelée de l'exterieur ca me donne l'erreur suivante.
grand merci a tous et en particulier a mr Esgici

Hello everyone
My problem is that when I use an internal variable to the procedure see example is ok but when I use a variable called from outside it gives me the following error.
big thank you to everyone and especially to mr Esgici