HMG4 dialogs (some functions)

Moderator: Rathinagiri

User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

HMG4 dialogs (some functions)

Post by l3whmg » Wed Mar 02, 2011 11:25 pm

Hello everyone,
since I have updated some of the functions relating to directory functions, I tested some parts of the source dialogs.prg.
I refer to the functions HMG: GetFile, PutFile, GetFolder and consequently the basic function GetSetFile.
I found some little problems.

Preserving compatibility with HMG3, I tried to write the code a little differently, especially for the function GetSetFile which reduced the number of parameters (less than before) and placed them otherwise.

Also, I tried to pay attention to the presence or absence of certain parameters as well as their consistency or value.

Another example of action: I use the function GetUserHomeFolder() to establish, in the absence of the parameter value, from which directory to start looking.

Finally, with regard to selecting a file to update, I used the correct configuration for DialogBox, activating the button "SAVE" instead of "OPEN". In this way, by selecting an existing file, automatically gives a further QT DialogBox which asks the question "Do you want to replace ..." and has two buttons: "Yes" and "No " (but read comment inside source, please)

Since the function GetSetFile is different , let me know if you think this version should be published or not.
In my version the functions are called "L_GetFile", "L_PutFile", "L_GetFolder" and "L_GetSetFile" to avoid conflicts.

Cheers
Attachments
l3w_dialogs.zip
L3W pow about some function in dialogs.prg
(1.91 KiB) Downloaded 88 times
Luigi from Italy
www.L3W.it

Carlos Britos
Posts: 220
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 6 times
Been thanked: 2 times

Post by Carlos Britos » Thu Mar 03, 2011 11:26 pm

Hi
I'm trying to download the code and I can't. I get this file with message:
You are not authorised to download this attachment.
I tried with 2 browser deleting al cookies.
Any idea about this.
Am I punished ? :shock:
Attachments
l3w_dialogs.zip
(2.2 KiB) Downloaded 79 times
Regards/Saludos, Carlos (bcd12a)

User avatar
Rathinagiri
Posts: 5250
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 167 times
Been thanked: 165 times
Contact:

Post by Rathinagiri » Fri Mar 04, 2011 4:01 am

Hi,

I have tested out your permissions and I can download the file pretending to be you.

Does anybody else have the same problem?

I don't understand why this happens. Sorry for the inconvenience.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4472
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 352 times
Been thanked: 104 times
Contact:

Post by esgici » Fri Mar 04, 2011 8:29 am

rathinagiri wrote:...
Does anybody else have the same problem?
Hi

From my side, no. Downloaded without any problem.

Hi Carlos,

Did you verified your privileges regarding OS settings ?

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

Carlos Britos
Posts: 220
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 6 times
Been thanked: 2 times

Post by Carlos Britos » Fri Mar 04, 2011 4:09 pm

esgici wrote:
rathinagiri wrote:...
Does anybody else have the same problem?
Hi

From my side, no. Downloaded without any problem.

Hi Carlos,

Did you verified your privileges regarding OS settings ?

Regards

--

Esgici
Hi
Normally I don't have problems to download files from the forum, just the last ones
Regards/Saludos, Carlos (bcd12a)

User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Post by l3whmg » Fri Mar 04, 2011 4:21 pm

Hi Carlos,
I've downloaded without problems, but I don't know if my test it's important: I've uploaded this file.

Cheers
Luigi from Italy
www.L3W.it

Carlos Britos
Posts: 220
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 6 times
Been thanked: 2 times

Post by Carlos Britos » Fri Mar 04, 2011 11:20 pm

l3whmg wrote:Hi Carlos,
I've downloaded without problems, but I don't know if my test it's important: I've uploaded this file.

Cheers
Luigi can you send it to me at bcd12a(a_t)yahoo.com.ar
l3whmg wrote: I have tested out your permissions and I can download the file pretending to be you.
Does anybody else have the same problem?
I don't understand why this happens. Sorry for the inconvenience
Ratinagiri don´t worry about this

I will upload a dummy file to check something, please Ignore this file
Attachments
dummy.zip
(143 Bytes) Downloaded 78 times
Regards/Saludos, Carlos (bcd12a)

User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Post by l3whmg » Sat Mar 05, 2011 11:20 am

Hi Carlos,
I sent to you a zip file. Sometime I have same problems when downloading files from internet. I'm not sure, but I think about two problems: FF (normally I use this browser) and/or MsWin system. But I don't find a good solution: simply close browser or change folder destination....

Cheers
Luigi from Italy
www.L3W.it

User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines
Been thanked: 2 times

Post by dhaine_adp » Sun Mar 06, 2011 5:29 am

Hi Rathi,

I also encountered this problem. But it seems to me that it is a connection timed-out. Means if the browser is idle looks the forum software disconnects the connection or closes the connection.

If I right click on IE and open in new tab several links within the forum, although I was logged on on the first window but on the other tabs it says it shows login. Looks like that when we are not logon to HMG4 related links download is restricted. Well it is based on my observation but might also an O/S issue.

Regards,

Danny
Regards,

Danny
Manila, Philippines

User avatar
Rathinagiri
Posts: 5250
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 167 times
Been thanked: 165 times
Contact:

Post by Rathinagiri » Sun Mar 06, 2011 7:58 am

It might be a problem related to cookie.

Have you enabled cookie for our forum?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply