Search found 347 matches

by Flinx
Sat Dec 13, 2025 12:05 am
Forum: General programming
Topic: CreateList Modifying Items.
Replies: 2
Views: 360

Re: CreateList Modifying Items.

I think the key point is that Temp is a list with integer indexes, which can be seen in

Code: Select all

ForEach(Temp, DebugPrint)
What the list contains as elements should not matter.
by Flinx
Wed Dec 03, 2025 2:27 pm
Forum: Hollywood bugs
Topic: GetVolumeName() and GetVolumeInfo() on Windows
Replies: 1
Views: 265

GetVolumeName() and GetVolumeInfo() on Windows

On Windows, the functions GetVolumeName() and GetVolumeInfo() return the correct results for existing volumes, but for all non-existent volumes, the result is a random value or the previously returned value. Without my p_PrintHex() function, the result looks different, so I left it in the first two ...
by Flinx
Tue Dec 02, 2025 11:19 am
Forum: General programming
Topic: Some Questions.
Replies: 5
Views: 4234

Re: Some Questions.

Bugala wrote: Tue Dec 02, 2025 7:52 am I guess by now this OnError has happened, what was the implementation?
Maybe this one?

But I usually use the the construct from here, for example:

Code: Select all

Local err, id=?LoadBrush(Nil,vfile$)
If err<>#ERR_NONE
	...
by Flinx
Wed Nov 19, 2025 3:34 pm
Forum: General programming
Topic: String indexes, spaces, and WriteTable()
Replies: 2
Views: 809

Re: String indexes, spaces, and WriteTable()

So, my first solution was to use the index strings in Base64 coded form, but because I wanted the file human readable, I now build a serializable list and save this. And convert it back after reading. If someone is interested: Function p_WriteNowPlayingTable() Local serializableTable=CreateList() If...
by Flinx
Mon Nov 17, 2025 10:53 pm
Forum: General programming
Topic: String indexes, spaces, and WriteTable()
Replies: 2
Views: 809

String indexes, spaces, and WriteTable()

I have a table with string indexes, and the strings come from outside the program and may also contain spaces. Now I wanted to write this table using WriteTable(), but this did not work. The following example works with the legacy serializer, but with Adapter="Default" I get an “Error seri...
by Flinx
Fri Oct 17, 2025 10:31 am
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 1837

Re: Extract file content into string without creating a flie

Interesting. Maybe the behavior is actually only half a bug. I looked up the problem in the manual again, but it doesn't seem to be mentioned directly. However, section 7.9 (Loaders and adapters) describes the process of how loaders are used (Hollywood will ask all plugins whether they want to handl...
by Flinx
Thu Oct 16, 2025 1:42 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 1837

Re: Extract file content into string without creating a flie

You can replace the InstallAdapter by an Adapter="zip" in the argument table of OpenFile, then DeleteFile works in my script too.
by Flinx
Thu Oct 16, 2025 12:45 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 1837

Re: Extract file content into string without creating a flie

Later in the script i added an option to delete that zip file, but it fails with an error (unable to delete). Ialso tried to force it to be deleted, but here again I am unsure if the syntax is correct. The syntax is correct, and Force should not be necessary. Did you do this with my script, startin...
by Flinx
Wed Oct 15, 2025 6:12 pm
Forum: General plugin questions
Topic: Typo in zip doc
Replies: 1
Views: 855

Typo in zip doc

In the manual of zip version 2.0 at section "3.3 Extracting files" is a round bracket instead of a curly:

Code: Select all

CopyFile("test.zip/pic.jpg", "out", {UserTags = {Password = "123456")})
by Flinx
Wed Oct 15, 2025 3:17 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 1837

Re: Extract file content into string without creating a flie

Even though jPV has built a working script, I still want to correct my faulty one too (Password must be in the user tags). This gives you two solutions. @REQUIRE "zip", {InstallAdapter = True} secretfile$ = DefineVirtualFileFromString("This\nis\nthe\nvery\nsecret\nmessage", "...