IonicWind Software

IWBasic => General Questions => Topic started by: Andy on October 22, 2019, 12:23:29 AM

Title: IWB editor recent files list
Post by: Andy on October 22, 2019, 12:23:29 AM
Bill was asking was there a way to set keywords to uppercase / lowercase.

Well with Brian's help, I've managed it, I can get the name of the source code you want to convert from the IWB window caption e.g. "IWbasic - [Read4.iwb]" (where Read4.iwb is the file I want).

But how do I get the path to it?

It is shown in the recent files list - but how do I access this list? or find the path?

Any suggestions please!

Thanks,
Andy.
 :)
Title: Re: IWB editor recent files list
Post by: billhsln on October 22, 2019, 01:56:20 PM
I think I found what you are looking for file 'IWBDev.ini', under the 'IWBDev3\bin' directory, depends on where you installed IWBDev3.  Pull up the ini file and look for:

Also check on: [CompilerOpts], which seems to have only programs that load when the compiler loads.

[Files]
loadlast= 1
lastfile=
entries= 0
lpaths= 1
openparentproject= 0
f1=c:\users\public\documents\iwbasic\myprogs\csb\kyle_orders.iwb
f2=c:\users\public\documents\iwbasic\myprogs\merge multi files\merge_multi_files-s.iwb
f3=c:\users\public\documents\iwbasic\myprogs\csb\chase_paymentech.iwb
f4=c:\users\public\documents\iwbasic\myprogs\order entry\order_entry-load.iwb
f5=c:\users\public\documents\iwbasic\myprogs\utilities\move_onedrive_files.iwb
f6=c:\users\public\documents\iwbasic\myprogs\misc\recurse_delete_empty_dirs.iwb
f7=c:\users\public\documents\iwbasic\myprogs\csb\amazon_uk_orders-32.iwb
f8=c:\users\public\documents\iwbasic\samples\eblexer\eblexer.iwb
f9=c:\users\public\documents\iwbasic\samples\ukflag\ukflag.iwb
f10=c:\users\public\documents\iwbasic\myprogs\ntclc_membership\ntclc_membership_for_callingpost.iwb

This looks like what you might be looking for.

Bill
Title: Re: IWB editor recent files list
Post by: LarryMc on October 22, 2019, 10:31:43 PM
I can't remember off the top of my head but you might be able to have the same file name in different folders. I'd check before to depend on this method alone too much.  Or at least warn the user and make sure the path you pick is the path the User is wanting to pverwrite.
Title: Re: IWB editor recent files list
Post by: billhsln on October 23, 2019, 11:00:29 AM
I was just thinking that it could update the file and save the original as filename.iwb-orig or some thing like that.  Always keep old versions, you never know when you are going to do something stupid and delete code you need.  I have done this multiple times (dropbox has saved me a few times, along with my backups).

Bill
Title: Re: IWB editor recent files list
Post by: Andy on October 24, 2019, 01:12:22 AM
Bill & Larry,

Thanks guys, as the program I am writing for Bill / IWB users (Capitallise keywords) we are compitant to find our own location of IWBDev.ini.

Bill,

I have managed (with Brian's help) to write a program for you that will as said capitalise / lowercase keywords for you / us.

I'm just working on tabs in the middle of lines now, but everything seems to be working well.

As soon as it's finished I will release it.

Thanks,
Andy.
 :)
Title: Re: IWB editor recent files list
Post by: billhsln on October 24, 2019, 10:27:04 AM
Thank you.  Will make it easier to change all my programs to having upper case for all keywords.

Thanks,
Bill
Title: Re: IWB editor recent files list
Post by: Andy on October 25, 2019, 06:09:56 AM
Bill,

Just a couple of slight bugs in it yet  ::) , I have more time tomorrow, hopefully I can release it then.

Andy.
 :)