Search found 13 matches

by mikemiller
Fri Nov 03, 2023 2:05 pm
Forum: General Development
Topic: BR Limit (2**15/2)-1 = 16,383 Line #'s
Replies: 2
Views: 337

Re: BR Limit (2**15/2)-1 = 16,383 Line #'s

That's interesting. The fact that they're apparently stored in a signed 16-bit integer sort of implies that there can be negative line numbers.
by mikemiller
Mon Aug 28, 2023 7:03 am
Forum: General Development
Topic: Folder Name -- Picker
Replies: 5
Views: 11460

Re: Folder Name -- Picker

So far, I haven't, surprisingly enough. At least not with scripts. I do have the luxury of being an admin in my environment, so if it does happen, I have the ability to whitelist. :D Another option would be to digitally sign the script. In the past I've had problems with executables I've created. In...
by mikemiller
Thu May 18, 2023 5:30 am
Forum: General Development
Topic: Folder Name -- Picker
Replies: 5
Views: 11460

Re: Folder Name -- Picker

Yep, that should work, too!

The main difference I see is my version wasn't cleaning up objShell and the third argument to BrowseForFolder.
Glad I could help!
by mikemiller
Wed May 17, 2023 2:22 pm
Forum: General Development
Topic: Folder Name -- Picker
Replies: 5
Views: 11460

Re: Folder Name -- Picker

I use a .vbs script that I copy client side and call with a batch file. Option Explicit Dim strPath, objArgs Set objArgs = WScript.Arguments strPath = SelectFolder( objArgs(0) ) If strPath = vbNull Then WScript.Echo "" Else WScript.Echo strPath End If Function SelectFolder( myStartFolder )...
by mikemiller
Fri Oct 29, 2021 11:25 am
Forum: General Development
Topic: proc parameters
Replies: 4
Views: 14408

Re: proc parameters

Just to add onto my prior example, a more realistic approach would be something like this. ED PROC file: execute 'sys "C:\Program Files\NotePad++\NotePad++.exe" '& SourceFile$ & ' -n' & Line$ Calling program: 0001 let SourceFile$ = 'lib\myprogram.br.brs' 0002 let Line$ = '153' ...
by mikemiller
Mon Oct 25, 2021 5:34 am
Forum: General Development
Topic: proc parameters
Replies: 4
Views: 14408

Re: proc parameters

You can do so using the CHAIN statement.

As an example, in example.proc:

Code: Select all

PRINT 'Foo$ is equal to ' & Foo$ & '.'

And then in your calling program:

Code: Select all

0001 let Foo$ = 'bar'
0002 chain 'proc=example.proc', Foo$
Output:
Foo$ is equal to bar.
by mikemiller
Fri Sep 03, 2021 10:03 am
Forum: Printing
Topic: NWP on Label Stock
Replies: 17
Views: 31724

Re: NWP on Label Stock

I know this is an old thread but I just came across it and thought it sounded familiar. After a little digging I realized it was from a bug I discovered a few months ago. The cause was an improperly cased escape sequence in an NWP substitute statement. The bug in question was this: PRINTER NWP [LABE...
by mikemiller
Mon Aug 09, 2021 3:51 am
Forum: General Development
Topic: Mixing Keyed and Relative File Access
Replies: 11
Views: 20900

Re: Mixing Keyed and Relative File Access

That makes sense.
I think the route I'll take is to just add a unique primary key and operate off of that.

Thanks again for taking the time to actually look at it! :D
by mikemiller
Wed Aug 04, 2021 7:04 am
Forum: General Development
Topic: Mixing Keyed and Relative File Access
Replies: 11
Views: 20900

Re: Mixing Keyed and Relative File Access

So, after a lot of attempts, I cannot reproduce. However, I can reproduce with the old index and and a generated data file. Here is the program to reproduce 00001 def FnTestDuplicates 00002 dim RecsToUpdate(0), DulpicateRecords(0) 00003 dim Type$*1, ID$*32, Day, Posted, Size, rc, HasDuplicates 00004...
by mikemiller
Tue Aug 03, 2021 12:55 pm
Forum: General Development
Topic: Event Driven Architecture and concurrency
Replies: 1
Views: 20105

Re: Event Driven Architecture and concurrency

https://www.youtube.com/watch?v=STKCRSUsyP0 This is one of my favorite talks on event driven architecture. It makes me dream of being able to work on some sort of append only system where the state from any point in time can be rebuilt.
by mikemiller
Tue Aug 03, 2021 12:50 pm
Forum: General Development
Topic: Mixing Keyed and Relative File Access
Replies: 11
Views: 20900

Re: Mixing Keyed and Relative File Access

Yes, the program's above seem to work just fine. It's probably something simple I'm missing. I also customized it to fit more what I was doing(triple split key between c / zd and bh formats). As well as a few 100 duplicate keys. Everything seems to function fine so I'm leaning more towards a bug els...
by mikemiller
Tue Aug 03, 2021 5:42 am
Forum: General Development
Topic: Mixing Keyed and Relative File Access
Replies: 11
Views: 20900

Re: Mixing Keyed and Relative File Access

Thanks a lot, everyone! I'm sure I tested it in the past. I also believe I have unit tests somewhere that test this specific case. I just had an issue pop up that I couldn't logically draw a conclusion from. I have a file that has 2 keys, none of them unique. The only way it can delete entries is so...
by mikemiller
Mon Aug 02, 2021 11:27 am
Forum: General Development
Topic: Mixing Keyed and Relative File Access
Replies: 11
Views: 20900

Mixing Keyed and Relative File Access

Since keyed file access seems like the handiest of the options, most of my reads use this method (utilizing fileio). It makes it really easy to implement a read loop to where only the needed records are read and nothing more which obviously benefits performance. Another method I've been leaning towa...