This blog is to provide support for creators of novocard iPad app stacks. To share stacks, help with scripts and generally promote the use of novocard.
Great idea. Here are some first questions: Can anybody write the correspondent novocard script to my provided basic HyperTalk-scripts below? I did't find any runable solution. Thank you!!!
on mouseUp put empty into cd fld "outputstuff" repeat with i=1 to the number of chars of cd fld "Inputstuff" put char i of cd fld "Inputstuff" & return after cd fld "outputstuff" end repeat end mouseUp
on mouseUp set script of cd btn "My dynamic Button" to cd fld "Scriptcollection1" end mouseUp
on mouseUp repeat with index = 1 to 100 set name of cd btn index to index end repeat end mouseUp
I hope i'll get a feeling of novaCard- scripts if anybody answers my elementary questions. If yes, I'll provide some more elementary scripts in a very near future ;-)
I would like to send you my stack with many answers to your question . Please email me at richard.swancott@det.nsw.edu.au The stack has many string processing routines which will provide solutions
on touchUp thisCard.field("Outputstuff").setText(thisCard,"") var List= new String; var TheList= new Array(); List=thisCard.field("inputstuff").text(thisCard); TheList=List.split(""); var pos=0; var max=TheList.length; //length of array var output_string= new String;
while (pos <max-1) { output_string += TheList[pos]+ "\r"; pos++ }
thisCard.field("outputstuff").setText(thisCard,String(output_string)); end touchUp
I just heard about your blog. Bob Barnett said that you were the "other power user." I am not sure I qualify as power, but I have been working for a while to get some of my code from HyperCard and SuperCard to run in NovoCard. The latest effort, which has been successful is an export script for HyperCard and SuperCard to take the contents of all bkgnd fields and an import script for building the same database in NovoCard. It is for field contents only, but it is a start. I have successfully brought 3 SuperCard stacks' contents and 1 HyperCard stack contents into NovoCard. I sent Bob a report and am willing to share my experiences and code. The translation of HyperTalk to JavaScript is definitely a challenge.
Greeting and thanks for your interest. Love to see your stacks. Feel free to share through email. richard.swancott@det.nsw.edu.au I am mainly interested in the programming and interface design aspects of using it with my programming course and so my stacks have lots of sorting algorithms and string manipulation stuff at the moment.
Finally have a class set of ipads to use but they are locked up until the administration gets their heads around software licencing issues. Bureaucracy triumphs again!
Looking for a few stacks to tear apart. I used Hypercard years ago, but now the syntax to Java escapes me- I really don't want to take another class. I Just want to discover a few simple programming conventions.
You were kind enough to send a sample script, however when I unarchive it in any unarchive program and choose "send to Novocard" Novocard instantly opens and closes. Disappointing.
Great idea. Here are some first questions: Can anybody write the correspondent novocard script to my provided basic HyperTalk-scripts below? I did't find any runable solution. Thank you!!!
ReplyDeleteon mouseUp
put empty into cd fld "outputstuff"
repeat with i=1 to the number of chars of cd fld "Inputstuff"
put char i of cd fld "Inputstuff" & return after cd fld "outputstuff"
end repeat
end mouseUp
on mouseUp
set script of cd btn "My dynamic Button" to cd fld "Scriptcollection1"
end mouseUp
on mouseUp
repeat with index = 1 to 100
set name of cd btn index to index
end repeat
end mouseUp
I hope i'll get a feeling of novaCard- scripts if anybody answers my elementary questions. If yes, I'll provide some more elementary scripts in a very near future ;-)
Thank you
Martin
I would like to send you my stack with many answers to your question .
DeletePlease email me at richard.swancott@det.nsw.edu.au
The stack has many string processing routines which will provide solutions
Novocard is a superset of javascript see w3schools.com for string processing help.
DeleteWhat you have is good hypertalk
on touchUp
DeletethisCard.field("Outputstuff").setText(thisCard,"")
var List= new String;
var TheList= new Array();
List=thisCard.field("inputstuff").text(thisCard);
TheList=List.split("");
var pos=0;
var max=TheList.length; //length of array
var output_string= new String;
while (pos <max-1)
{ output_string += TheList[pos]+ "\r";
pos++
}
thisCard.field("outputstuff").setText(thisCard,String(output_string));
end touchUp
I just heard about your blog. Bob Barnett said that you were the "other power user." I am not sure I qualify as power, but I have been working for a while to get some of my code from HyperCard and SuperCard to run in NovoCard. The latest effort, which has been successful is an export script for HyperCard and SuperCard to take the contents of all bkgnd fields and an import script for building the same database in NovoCard. It is for field contents only, but it is a start. I have successfully brought 3 SuperCard stacks' contents and 1 HyperCard stack contents into NovoCard. I sent Bob a report and am willing to share my experiences and code. The translation of HyperTalk to JavaScript is definitely a challenge.
ReplyDeleteGreeting and thanks for your interest. Love to see your stacks. Feel free to share through email. richard.swancott@det.nsw.edu.au
DeleteI am mainly interested in the programming and interface design aspects of using it with my programming course and so my stacks have lots of sorting algorithms and string manipulation stuff at the moment.
Back on line and started teaching for this year. I have sent some stacks out to people who have emailed me.
ReplyDeleteFinally have a class set of ipads to use but they are locked up until the administration gets their heads around software licencing issues. Bureaucracy triumphs again!
ReplyDeleteLooking for a few stacks to tear apart. I used Hypercard years ago, but now the syntax to Java escapes me- I really don't want to take another class. I Just want to discover a few simple programming conventions.
ReplyDeleteYou were kind enough to send a sample script, however when I unarchive it in any unarchive program and choose "send to Novocard" Novocard instantly opens and closes. Disappointing.
ReplyDelete