08-06-2010, 06:05 AM
One line is easy. Just need big function behind it.
Here's the one line email function:
Now what does that do? One specific thing and that's it. It's not versatile at all.
See, the xls file must be hardcoded...the email message would be hardcoded too...when to send...how often...what account....the list goes on and on.
Ok, so specify all these little things....and you still have something that is terribly specific.
Ok so you want it versatile? Well, then the variables become just as complex and probably even more cryptic than just writing the code.
One of the most versatile one line macros in QM:
int ShowDialog([$macro] [dlgproc] [!*controls] [hwndowner] [flags] [style] [notstyle] [param] [x] [y] [$icon] [$menu])
flags: 1 nonmodal, 2 macro is DD, 4 set style (default is to add), 64 raw x y.
Still that falls short and needs to be manipulated from time to time, and that's if you can even figure out all of the ways to manipulate what is already there.
The beauty of programming is in the imagination. If you don't have imagination and you need something done....ask your IT guy to figure it out for you.
Here's the one line email function:
Now what does that do? One specific thing and that's it. It's not versatile at all.
See, the xls file must be hardcoded...the email message would be hardcoded too...when to send...how often...what account....the list goes on and on.
Ok, so specify all these little things....and you still have something that is terribly specific.
Ok so you want it versatile? Well, then the variables become just as complex and probably even more cryptic than just writing the code.
One of the most versatile one line macros in QM:
int ShowDialog([$macro] [dlgproc] [!*controls] [hwndowner] [flags] [style] [notstyle] [param] [x] [y] [$icon] [$menu])
flags: 1 nonmodal, 2 macro is DD, 4 set style (default is to add), 64 raw x y.
Still that falls short and needs to be manipulated from time to time, and that's if you can even figure out all of the ways to manipulate what is already there.
The beauty of programming is in the imagination. If you don't have imagination and you need something done....ask your IT guy to figure it out for you.
