As many of us do I'm sure, I use PB to do lots of one time, or seldom used, jobs. Instead of writing a whole new .exe each time, what I do is just add a Sub to a commonly used program.
For example I use E-Z Post (extensively modified for my own purposes) a lot (for most of my posts here Where the "Sayings" are appended). So when I have short routine, I just add it to EZ Post under a "Miscellaneous" heading.
'
No need to write a whole new .exe for a simple quick job. I know lots of guys use PBForms (or PBCC) to write quickies but this is even quicker. At least for me.
And while I'm working on a routine I call the Sub before showing the dialog in PBMain:
'
================================================================
"Imitation is the sincerest form of television."
Fred Allen (1894-1956)
================================================================
For example I use E-Z Post (extensively modified for my own purposes) a lot (for most of my posts here Where the "Sayings" are appended). So when I have short routine, I just add it to EZ Post under a "Miscellaneous" heading.
'
Code:
'at top of program %GHL_Lav_Comments_Update = 1239 ' 'In Dialog set up: Local h_PopUp11 As Dword hpp = h_PopUp11 'shorter coding Menu New PopUp To hpp Menu Add PopUp, g_hMenu, "Miscellaneous", hpp, %MF_ENABLED Menu Add String, hpp, "Convert Microlife File", _ %GHL_MicroLife, %MF_ENABLED Menu Add String, hpp, "Remove Extra Lines in File", _ %GHL_Temp_Use, %MF_ENABLED Menu Add String, hpp, "Operating System Version", _ %GHL_OP_Version, %MF_ENABLED Menu Add String, hpp, "MsgBox_To_Clipboard", _ %GHL_MsgBox_To_Clipboard, %MF_ENABLED Menu Add String, hpp, "Update Lavallette Comments File", _ %GHL_Lav_Comments_Update, %MF_ENABLED 'then in the main Callback: ' Case %GHL_Lav_Comments_Update 'or whatever Call %GHL_Update_Lav_Comments 'Sub that updates the Lavallette_Comments.shtml '
And while I'm working on a routine I call the Sub before showing the dialog in PBMain:
'
Code:
Function PBMain() ' Call GHL_zWorking ' Call GHL_Itunes_Tune_Up:Exit Function ' Call Word_Spelling_Search ' Call GHL_IntelliSense_Folder_Fix Call %GHL_Update_Lav_Comments '<== Rem after satisfied it's working ShowDIALOG1 %HWND_DESKTOP End Function
"Imitation is the sincerest form of television."
Fred Allen (1894-1956)
================================================================
Comment