HMG4 dialogs (some functions)
Posted: 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
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