Search found 52 matches

by hpsh
Sun Dec 20, 2020 9:08 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Does RevPrintText Support A Page Break?
Replies: 19
Views: 8393

Re: Does RevPrintText Support A Page Break?

hi Craig, what I mean is that it look at what you send to RevPrintText, as a single print job, and it will eject the page after a print job.

pretty sure this has a billion solutions but doesn't get why this formfeed thingy doesn't work? make no sense according to the help function for me.
by hpsh
Sun Dec 20, 2020 4:43 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Does RevPrintText Support A Page Break?
Replies: 19
Views: 8393

Re: Does RevPrintText Support A Page Break?

hi Craig

actually, nope, it doesn´t did test it by sending the print to pdf, and seem it just translated it to carriage return? :oops:

on the other hand, this

Code: Select all

   repeat 3 times
      RevPrintText "Hello World"
   end repeat
creates 3 pages with a single line of "hello world"
by hpsh
Sun Dec 20, 2020 1:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Does RevPrintText Support A Page Break?
Replies: 19
Views: 8393

Re: Does RevPrintText Support A Page Break?

you are correct Craig, formfeed is ASCII 12 according to the dictionary of LiveCode :-)

I know I have done it in Borland c version 2 on my old XT computer, but did not remember what the code was, is some time ago LOL

HPSH
by hpsh
Sat Dec 19, 2020 9:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Does RevPrintText Support A Page Break?
Replies: 19
Views: 8393

Re: Does RevPrintText Support A Page Break?

as far I get, it is a constant you can put in the text called formfeed that will force a page break assume you have the text like you want in a string called mytext you should be able to just write it like this put formfeed after mytext sadly I cannot test it, because my old wreck of a printer, no l...
by hpsh
Fri Dec 18, 2020 10:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Regex not working
Replies: 18
Views: 7046

Re: Regex not working

Hi Craig, i did it this way -- Sent when the mouse is released after clicking -- pMouseButton specifies which mouse button was pressed on mouseUp pMouseButton local mTicks, mText put the ticks into mTicks put empty into field "2" repeat for each line tLine in field "1" if matchtext(tLine,"[X]\d{5}")...
by hpsh
Fri Dec 18, 2020 10:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Regex not working
Replies: 18
Views: 7046

Re: Regex not working

yeah, twice the data, is typically more than twice the time. has tried to do some sorting algorithms, and about 10000 lines seem typical to be painfully slow.
wonder how it would be with a lot more lines, and if something like putting it in an array would help.
by hpsh
Fri Dec 18, 2020 8:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Regex not working
Replies: 18
Views: 7046

Re: Regex not working

for me, 10000 lines of random text, with some hit and misses, takes 5 ticks with the filter variation, and something like 160 with the for each but if the hits are put into a string, and after that is put into the result field it is pretty much the same so seems to me it pretty fast, but yeah, the m...
by hpsh
Fri Dec 18, 2020 5:11 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Regex not working
Replies: 18
Views: 7046

Re: Regex not working

darn it, had to check this filter thingy -- Sent when the mouse is released after clicking -- pMouseButton specifies which mouse button was pressed on mouseUp pMouseButton local mText put field "input" into mText filter lines of mText matching regex"[X]\d{5}" put mText into field "result" end mouseU...
by hpsh
Fri Dec 18, 2020 4:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Regex not working
Replies: 18
Views: 7046

Re: Regex not working

seems this works for me -- Sent when the mouse is released after clicking -- pMouseButton specifies which mouse button was pressed -- Sent when the mouse is released after clicking -- pMouseButton specifies which mouse button was pressed on mouseUp pMouseButton put empty into field "result" repeat f...
by hpsh
Thu Jun 20, 2019 1:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sorting data question
Replies: 14
Views: 26031

Re: Sorting data question

just for fun

really not great, just a pretty quick thing
by hpsh
Wed Jun 19, 2019 8:05 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sorting data question
Replies: 14
Views: 26031

Re: Sorting data question

just wonder, is that you want to do to split the data, or to sort the data?

mvh
hpsh
by hpsh
Mon Nov 19, 2018 4:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Delete part of text
Replies: 19
Views: 8991

Re: Delete part of text

just wonder a bit about this, deleting chars -1 to -4 in a filename, where the end could be something like mytext.lz would make it to mytex. would it not be better to set itemdel to "." transfer item 1 to a new string, and then replace the original with the new string? would also fix a problem on Un...
by hpsh
Mon Apr 03, 2017 8:05 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Very Hard to learn for beginner
Replies: 57
Views: 27682

Re: Very Hard to learn for beginner

If you want a fight, you can have a fight; but all that will happen will that everyone will have bloody noses. If, however, you approach Livecode in this way: 1. Don't expect everything to be on a spoon for you. [ When have you ever experienced that: after all, at school we have to make an effort a...
by hpsh
Sun Apr 02, 2017 4:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Very Hard to learn for beginner
Replies: 57
Views: 27682

Re: Very Hard to learn for beginner

hide widget "spinner" show widget "spinner" VERY DIFFICULT! sure, but the thing is, why is it not in the example? and please get this, i don't saying that livecode is shit, only that i think they should do a bit more work on the examples they putting on the webpages. this one is also pretty easy to...
by hpsh
Sun Apr 02, 2017 11:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Very Hard to learn for beginner
Replies: 57
Views: 27682

Re: Very Hard to learn for beginner

think livecode are pretty easy, but the spinner thing is a problem. i can find https://livecode.com/livecode-widgets-the-spinner-activity-indicator/ and its looks pretty easy, but i can't get it to work. the widget will spinn, but the point has to be to make the spinner to disappear? i only get a er...

Go to advanced search