Previous Thread
Next Thread
Print Thread
Back to Basics - XTree Starting Row.. #36548 23 Aug 23 11:03 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
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


Code
! 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 11:04 AM.
Re: Back to Basics - XTree Starting Row.. [Re: Steve - Caliq] #36549 23 Aug 23 11:17 AM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Steve sort order causing it?

XTRCTL.COLUMNSORT(1)=2: XTRCTL.SORTORDER(1)=0

Code
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 12:18 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Steve maybe its link to the XTF_EDITABLE switch?

Code
	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 12:28 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
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.

Code
	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 12:38 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Steve please make sure your not sitting and mumble to yourself at the Conference, people will think your weird ,(well weirder) smile

Re: Back to Basics - XTree Starting Row.. [Re: Steve - Caliq] #36553 23 Aug 23 01:14 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content
Member
Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Interesting chat laugh

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 01:15 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
Thanks Frank smile

Re: Back to Basics - XTree Starting Row.. [Re: Steve - Caliq] #36555 23 Aug 23 02:45 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
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 02:46 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
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 12:52 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
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 03:03 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
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 03:41 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content
Member
Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
I would have someone check Steve's code for some illegal "handicapping" going on!! laugh

Last edited by Frank; 25 Aug 23 03:42 PM.
Re: Back to Basics - XTree Starting Row.. [Re: Steve - Caliq] #36566 25 Aug 23 03:43 PM
Joined: Sep 2003
Posts: 4,158
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,158
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 08:48 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content
Member
Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
grin


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3