Since my Dialog and SQLite Extender development has come to a screeching halt with no resumption in site I decided to turn my energies to another project. This is the beginning of a project where I want to include a lot of the scripts I use all the time along with some other needs I run into occasionally and wish that WinBatch had such a function or option. Things like the ability to Initialize one row or column of an Array. UNIX cut feature. CSV String to an Array and vice versa. Etc. Hope I am not being a pain with this stuff...just thought I would share :)
http://www.jtdata.com/anonymous/wbSundry_1000.zip
Jim
Forgot to include snGetConstants() in the Help file.
This will retrieve the value for the specified Constant and create a Variable of the same name with that value.
Constant: The name of the Constant.
Returns: Value of Constant as well as creating a local variable initialized with that value.
Comments: Let me know if you find any that are wrong or are missing. A delimited list with values would be appreciated for any that are missing.
Example:
snGetConstants("LVM_SETCOLUMNWIDTH")
Message("VAR", LVM_SETCOLUMNWIDTH)
I really really like the cut function. I do a lot of this stuff.
Thanks Jim!
Thought you might. It was probably the most challenging to implement out of this group. Every time I thought I had it I would find a particular parameter set would fail. Just let me know if you find anything like that. Thanks.
Jim
Thank you very much for this Jim. It has come at a very opportune time. Much needed ArrayToStrCSV will assist me greatly!
Glad to hear it. That and its complement are ones I occasionally had cause to wish were available as well.
Jim
Posted an update. http://www.jtdata.com/anonymous/wbSundry.zip
Realized I didn't error out process when cut column was out of bounds. Also added a parameter to snStrCut() to allow one to pad the lines with blank spaces in the event a column is out of bounds, so it will handle variable length lines.
Jim