Search found 237 matches

by jPV
Wed Jun 12, 2019 6:05 pm
Forum: Newbie questions
Topic: capture cli output
Replies: 8
Views: 1787

Re: capture cli output

Great work \o/
by jPV
Tue Jun 11, 2019 9:24 pm
Forum: Newbie questions
Topic: How handle dates to make a little agenda?
Replies: 10
Views: 242

Re: How handle dates to make a little agenda?

for example something like this: addressbook = { {name="Juan", phone="0815", address="One Way 10", email="jc@gmail.com"}, {name="Andreas", phone="1337", address="AllWays 43", email="andreas@hw.com"} } ; Print names and emails just for a test: For Local i=0 To ListItems(addressbook)-1 DebugPrint(addr...
by jPV
Tue Jun 11, 2019 5:22 pm
Forum: Newbie questions
Topic: How handle dates to make a little agenda?
Replies: 10
Views: 242

Re: How handle dates to make a little agenda?

Does it have to be human readable text files? If not, you could use WriteTable() and ReadTable() to get a really easy solution.
by jPV
Tue May 28, 2019 10:09 am
Forum: General programming
Topic: Control if file is used before deletefile()
Replies: 7
Views: 292

Re: Control if file is used before deletefile()

You can disable the internal error handler before trying to delete a file, check yourself if it failed, and enable the error handler again after that. If you're using it often, maybe it's better to write an own delete function, like this: Function p_DeleteFile(file$) Local code ExitOnError(False) De...
by jPV
Sun May 19, 2019 10:43 am
Forum: Newbie questions
Topic: List and strings
Replies: 15
Views: 655

Re: List and strings

How about just doing it like this?

Code: Select all

			If loadedline$ <> "unwanted"
				InsertItem(myvar$, loadedline$)
			EndIf
Or if there are Unicode strings, then it's better like this:

Code: Select all

			If CompareStr(loadedline$, "unwanted")
				InsertItem(myvar$, loadedline$)
			EndIf
by jPV
Sat May 18, 2019 4:38 pm
Forum: Polybios
Topic: Request: IsPDF function
Replies: 11
Views: 1155

Re: Request: IsPDF function

I think he was on 68k... I seem to have got those test files from eab fileserver but can't find the thread atm :) In any case they fail to open on MorphOS (too). And yes, they seem to open on Windows here too...
by jPV
Sat May 18, 2019 9:50 am
Forum: Polybios
Topic: Request: IsPDF function
Replies: 11
Views: 1155

Re: Request: IsPDF function

Thanks!

BTW. I've forgot to ask earlier, but I got these couple PDF files (link) from one user and they don't open with Polybios. They do work with APDF and VPDF... so any idea why they don't work with Polybios?
by jPV
Sun May 12, 2019 6:27 pm
Forum: MUI Royale
Topic: String notify on key press
Replies: 2
Views: 232

Re: String notify on key press

Set a notification for the "contents" changes.
by jPV
Sun May 12, 2019 12:12 pm
Forum: General programming
Topic: Two transparency levels
Replies: 2
Views: 193

Re: Two transparency levels

There are many ways to do this in Hollywood, but here's an example of few cases: @DISPLAY {Color=#BLUE} @BRUSH 1, "ram:1.png", {LoadAlpha=True} ; Load a brush that already has a (alpha) transparent color @BRUSH 2, "ram:2.png", {Transparency=#BLACK} ; Load a brush and set a color in it transparent @B...
by jPV
Mon May 06, 2019 2:27 pm
Forum: Newbie questions
Topic: A few beginner questions
Replies: 5
Views: 287

Re: A few beginner questions

Looking at CircleText.hws that have the "Repeat - waitevent - forever" loop. After reading a bit in the docs, I think I get a clue on how that works. The program will stay in this loop, but will be triggered by the event set by SetInterval, so it goes through the p_mainloop once every 40ms. So far ...