Website and Help Typos

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Website and Help Typos

Post by admin »

Well, using variables to refer to strings is pretty much programming 101. I don't think there needs to be an example. The help file is fat enough. :)

altoclef
Posts: 101
Joined: 12 Oct 2012 18:54
Location: Win11 @100%; XY 27.20.1600

Re: Website and Help Typos

Post by altoclef »

cataloglocation() is missing its return entry.

admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Website and Help Typos

Post by admin »

:tup:

altoclef
Posts: 101
Joined: 12 Oct 2012 18:54
Location: Win11 @100%; XY 27.20.1600

Re: Website and Help Typos

Post by altoclef »

formatlist()
Format f also supports inversion by a prefixed "!".
The later examples show that inversion can also be applied to format F, but that is not stated in this statement or elsewhere.

admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Website and Help Typos

Post by admin »

Ok.

altoclef
Posts: 101
Joined: 12 Oct 2012 18:54
Location: Win11 @100%; XY 27.20.1600

Re: Website and Help Typos

Post by altoclef »

Please could you update the documentation for getkey() to include the return_on_error argument that you refer to here:

viewtopic.php?p=208279#p208279

admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Website and Help Typos

Post by admin »

:tup:

eil
Posts: 1911
Joined: 13 Jan 2011 19:44

Re: Website and Help Typos

Post by eil »

Not a typo or a huge thing, but would be useful to edit Inputselect() command's description with the note for style 512, just like style 128 has one.

Code: Select all

Note: Cannot be combined with styles 2 and 32768, 
cause returns All items, no matter checked/un-checked/selected states.
That "conflict" is really not obvious, and it's easy to think 512 returns items taking in account other styles effects.(since no constrains mentioned :ninja: )

A tiny wish for get() command's page to get own list of tags(just like main reference), since it has so many parameters that already took an own page.
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Website and Help Typos

Post by admin »

I think it's wrong as it is now. Checkboxes should override 512 because it's totally expected that only the checked items are returned.

I'm inclined to change it like this:

Code: Select all

    * SC inputselect: When flags 2 (checkboxes) and 512 (return all) were combined, 512 
      won, but this is counter-expectative. Fixed: Now 2 wins.
Apart from that I think it's quite obvious that both flags are in conflict and that it doesn't make sense to combine them.

eil
Posts: 1911
Joined: 13 Jan 2011 19:44

Re: Website and Help Typos

Post by eil »

admin wrote: ↑04 Nov 2026 09:10 Apart from that I think it's quite obvious that both flags are in conflict and that it doesn't make sense to combine them.
Can't fully agree to that, cause for "new scripters" it kinda looks like this: you wanna icons - add style 1; wanna checkboxes - add 2; wanna re-order - add 16, need all pre-check - add 32768 = everything has a small bit of combination that Must be added, plus some few have notes that can't work together. And here we have only a Single style 512 among other bits, that states "returns all items in their current state". The note mentions that "otherwise you'll get vanilla listdata" = which for "new scripter" means "all the changes i did with checks or re-order, won't be returned without that style, so it's a Must when changes were done to list".

Just for another example. Recently i spent half an hour in experiments trying to understand why couldn't i make inputselect() to take a PNG as an icon = it has 1024 style, comprehends caption|data|icon, so what's wrong?! The reason is simple - i got used that in popupmenu() PNG is valid, in user buttons too, so even after checking style 1024 description section i wasn't right away sure. True, it doesn't state anything about picture-icons, but at the same time there is no strict "only ICO, EXE, DLL", so i first expected "it should work just like popupmenu(), probably it's something wrong with my code".
That's how not obvious it can be.
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Website and Help Typos

Post by admin »

Of course, you could always add more sentences to a 900-page help file. But why rob new scripters of the joy of discovery? Scripting is an adventure!

Did you test the new logic in v28.40.0615?

eil
Posts: 1911
Joined: 13 Jan 2011 19:44

Re: Website and Help Typos

Post by eil »

Well, to add couple sentences or keep getting same question cause Help leads to wall, that's a choice too. :roll:

Can't check new logic - my laptop died and for now i'm stuck with old single core/x86 thing. But i'm sure it works flawlessly as all Don-tech.
Win 7 SP1 x64 100% 1366x768|1900x1080

Post Reply