Computer Science Canada

does turing 4 has the "show var" like turing 3 doe

Author:  greenapplesodaex [ Tue Apr 06, 2004 6:36 pm ]
Post subject:  does turing 4 has the "show var" like turing 3 doe

does turing 4 has the "show var" like turing 3 does?
if it does, how do i open that window?
thanx!

Author:  Tony [ Tue Apr 06, 2004 6:53 pm ]
Post subject: 

yes
code:

...
locate(1,1)
put varName
delay(500
...

Laughing

Author:  the_short1 [ Tue Apr 06, 2004 7:58 pm ]
Post subject: 

tony i dont think that matches the question..... do u mean show the variable's type??

Author:  greenapplesodaex [ Tue Apr 06, 2004 8:09 pm ]
Post subject:  reply

um... no, remember in turing 3, there's a button that says "show var", if you click it, a little window pops up and it shows all the var and all their values. easy for debuging. how do i get that out in turing 4?

Author:  Tony [ Tue Apr 06, 2004 8:22 pm ]
Post subject: 

you don't - no such thing (in v4... well... not yet)
code:

put "this is my program"
var name:string := "tony"
var num:int := 10

var winID:int := Window.Open("title:show vars")
put "some more of my program"
Window.SetActive(winID)
locate(1,1)
put "name:", name
put "num:", num

Window.SetActive(0)
put "the end"

Author:  greenapplesodaex [ Wed Apr 07, 2004 1:38 pm ]
Post subject:  reply

well, that works, too, thanx
but then you'd have to fork it so that it becomes "real-time"
and when you trace your program, it's gonna be trouble, lol

Author:  the_short1 [ Wed Apr 07, 2004 3:05 pm ]
Post subject: 

yea... i only used a version under 4 once or twice... and said !"THIS SUCKS"! and i pity the ppl who had to use it.... i just gave up and got the good one from school...
.
that would be wicked... like lets say... press CTRL+V (only u woud know this) and then it would pop up a window with all your variables..... too bad it would take so much typing to make it tony's way....

HINT: dont mention forking soemthing around him... he gets all touchy feely and starts to cry... Razz Laughing jk.... he'll prob suggest something other then a fork cuz he hates them with a passion Twisted Evil .. right tony???

Author:  greenapplesodaex [ Wed Apr 07, 2004 3:57 pm ]
Post subject:  reply

awww this sucks, think they ever add that thing in turing 4? maybe later on?

Author:  the_short1 [ Wed Apr 07, 2004 4:57 pm ]
Post subject: 

i sure hope tho... thats a WICKED FEATURE... maybe make a program in turing that reads your file and opens a new turing window...and shows contents of all variables...

like...

search 'urprogram.y' for all cont, var, etc... then find all values.... would be lots of if statements... i thinkl... but cool.... maybe try emailing tom west or w/e at http://www.holtsoft.com ??

Author:  Tony [ Wed Apr 07, 2004 6:51 pm ]
Post subject: 

what if statements? Laughing

a while ago I wrote a part of script interpriter (was suppost to handle animations and dialogs for an RPG). The point it - you could have decleared variables inside the .txt script and refer to them later on and .exe interpreter handeled everything perfectly. I even had if statements going there Wink

Author:  the_short1 [ Thu Apr 08, 2004 10:30 pm ]
Post subject: 

you should popst it here then... now im interested..... also...
i guess i wouldn't take much.... if you output all variables that are in your program into a text file... then later u can just put all the entries from that file.... hmm... i dont use read write to files to much... dont exactly know all of it yet... (wazn;t payiong attension...)

Author:  Tony [ Fri Apr 09, 2004 12:06 am ]
Post subject: 

the_short1 wrote:
you should popst it here then...


eh... was one of those work-in-progress things that never got to any sord of finish Confused I might consider taking some bits of code from that and writing something up though later on


: