Back to Basics - XTree Starting Row..
#36548
23 Aug 23 04:03 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
It just maybe im just having one of those days chasing my tail and have the most back to basics question, what determines where the XTree Row starts? I just want mine to start at the very top, but for this one new XTree i've written it just wants start randomly few dozen rows down! I've set: XTRCTL.XROW=0 XTRCTL.XCOL=0 XTRCTL.TARGETROW=0 XTRCTL.TARGETCOL=0
! Editable XTree
XCALL XTREE,LOCAL'SROW,LOCAL'SCOL,WOXT'ANS'XTREE'ARY(1),WOXT'XTREE'ARY(1),WOXT'COUNT,WOXT'COLDEF$, &
WOXT'EXITCODE,LOCAL'EROW,LOCAL'ECOL,WOXT'FLAGS'BANK,"",0,WOXT'XTRCTL
Whats the most obvious field i've missed? (Just talking alound here im sure I'll now spot it as soon as I click the post new thread button)
Last edited by Steve - Caliq; 23 Aug 23 04:04 AM.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36549
23 Aug 23 04:17 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Steve sort order causing it? XTRCTL.COLUMNSORT(1)=2: XTRCTL.SORTORDER(1)=0
15 12:14:39 <TELNET:4c8b> Sorting col 1, order 0, ctrlkey=fffffc19, flags=80000000, colflags=8180,800000,20, rowidxcno=27
Nope, comments that line out , and still starts x rows down.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36550
23 Aug 23 05:18 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Steve maybe its link to the XTF_EDITABLE switch?
IF WO'DISABLE'GRID'EDIT="N" THEN
WOXT'FLAGS = WOXT'FLAGS OR XTF_EDITABLE
ENDIF
Why Steve? As the XTree executes off in non-Edit mode and the starting row is half way down, but when it placed in Edit Mode (XTF_EDITABLE set) this one starts at top/first row.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36551
23 Aug 23 05:28 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Steve, tell Steve ...... this will solve it (Right solution who knows but it works) Set WOXT'ANSWER=0 and depending on XTree edit or not call a different variation of XTree. IF WO'DISABLE'GRID'EDIT="N" THEN
XCALL XTREE,LOCAL'SROW,LOCAL'SCOL,WOXT'ANS'XTREE'ARY(1),WOXT'XTREE'ARY(1),WOXT'COUNT,WOXT'COLDEF$, &
WOXT'EXITCODE,LOCAL'EROW,LOCAL'ECOL,WOXT'FLAGS'BANK,"",0,WOXT'XTRCTL
ELSE
XCALL XTREE,LOCAL'SROW,LOCAL'SCOL,WOXT'ANSWER,WOXT'XTREE'ARY(1),WOXT'COUNT,WOXT'COLDEF$, &
WOXT'EXITCODE,LOCAL'EROW,LOCAL'ECOL,WOXT'FLAGS'BANK,"",0,WOXT'XTRCTL
ENDIF
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36552
23 Aug 23 05:38 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Steve please make sure your not sitting and mumble to yourself at the Conference, people will think your weird ,(well weirder) 
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36553
23 Aug 23 06:14 AM
|
Joined: Sep 2002
Posts: 5,486
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,486 |
Interesting chat  It does make sense if the answer parameter was not 0 that it would locate on that row.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36554
23 Aug 23 06:15 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Thanks Frank 
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36555
23 Aug 23 07:45 AM
|
Joined: Jun 2001
Posts: 11,925
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,925 |
Touch it up a bit with some graphics, a little background music, maybe a back story and you've got another Conference presentation in the bag!
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36556
23 Aug 23 07:46 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
ha ha - OK, Best reserve a 4 second spot for me then.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36561
24 Aug 23 05:52 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Better use of time would be a Conference presentation of the 1990's Alpha Micro Horse Racing we wrote to decide who makes Coffee next.. (It still runs on Ashell but I do admit I did have add a XCALL SLEEP else you bink and it was finished)
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36562
24 Aug 23 08:03 AM
|
Joined: Jun 2001
Posts: 11,925
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,925 |
Better still, we can feed it into the new profiling tool and maybe squeeze a few more nanoseconds out of it.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36565
25 Aug 23 08:41 AM
|
Joined: Sep 2002
Posts: 5,486
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,486 |
I would have someone check Steve's code for some illegal "handicapping" going on!! 
Last edited by Frank; 25 Aug 23 08:42 AM.
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36566
25 Aug 23 08:43 AM
|
Joined: Sep 2003
Posts: 4,178
Steve - Caliq
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 4,178 |
Well I did find some specious code IF FRANK then. SpeedX3
|
|
|
Re: Back to Basics - XTree Starting Row..
[Re: Steve - Caliq]
#36568
25 Aug 23 01:48 PM
|
Joined: Sep 2002
Posts: 5,486
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,486 |
|
|
|
|
|