High Don! Once you said "I read everything". (I'd understand if it has changed.)
So a wish born from a question in Scripts-section:
It would be fine if we had an XY-function, that gives info about the "state" (in real it's "contents") of a variable.
There are situations, where a variable *must* have special contents, eg integer if used as an index. And there should be the ability to test it before use.
In the end it should return if the var is
array
empty
integer
float
string
and maybe, to have it "all in one" function, "undefined"
(You might have other/more ideas?)
Thanks!
Wish: an XY-routine to tell state of a var
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Wish: an XY-routine to tell state of a var
v24.40.0004: Negative numbers don't work yet. I saw it. 
FAQ | XY News RSS | XY X
-
Filehero
- Posts: 2731
- Joined: 27 Feb 2012 18:50
- Location: Windows 11@100%
Re: Wish: an XY-routine to tell state of a var
... now, let's type those buddies right from the start. Just a (lame) joke.
Helpful request and addition, thanks to both of you.

Helpful request and addition, thanks to both of you.
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Wish: an XY-routine to tell state of a var
...and a third
for this and the stepping-var!
As I plan to work with it on beginning of the week, I suppose .0005 will correct the negative bug (pun intended) till then?
As I plan to work with it on beginning of the week, I suppose .0005 will correct the negative bug (pun intended) till then?
-
admin
- Site Admin
- Posts: 66094
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Wish: an XY-routine to tell state of a var
Again: used it without testing.
Only to test for integer or string.
As expected: OK!
Thanks again!
Only to test for integer or string.
As expected: OK!
Thanks again!
XYplorer Beta Club