Search found 14 matches

by hotcore
Sat Jul 02, 2016 1:44 pm
Forum: Showcase
Topic: Very simple editor to show local file read/write
Replies: 2
Views: 5060

Re: Very simple editor to show local file read/write

I did a small update in the code to remove extraoneous variuable.
Note that writing the file effectively is a download in the browser!
by hotcore
Sat Jul 02, 2016 9:55 am
Forum: Showcase
Topic: Very simple editor to show local file read/write
Replies: 2
Views: 5060

Very simple editor to show local file read/write

; ------------------------------------------------------------------------------------
; Little file editor
; ------------------------------------------------------------------------------------

title.s = "Little File Editor"
XIncludeFile "..\includes\default.sb"
Global inFile.s

Procedure ...
by hotcore
Sat Jul 02, 2016 9:42 am
Forum: Coding Questions
Topic: Saving a file
Replies: 1
Views: 2333

Re: Saving a file

By just trying I found an answer to several questions:

1. when using CreateFile a SaveFileRequester pops up automagically;
would be nice to put that in de docs

2. when the file being created already exists, a dialog pops up wheter
we like to overwrite it;
would be nice to put that in de docs as ...
by hotcore
Fri Jul 01, 2016 2:46 pm
Forum: Coding Questions
Topic: Should I use SpiderBasic
Replies: 3
Views: 3215

Re: Should I use SpiderBasic

Hi,
thx for your answer.
But I guess I *can* write using functions like WriteByte and WriteCharacter etc.
Then again I miss a requester for saving files.
Best regards,
Arie
by hotcore
Fri Jul 01, 2016 2:43 pm
Forum: Coding Questions
Topic: Animation examples
Replies: 2
Views: 2976

Re: Animation examples

Hi,

thx very much for the example. I'll study it!

Best regards,
Arie
by hotcore
Wed Jun 29, 2016 3:26 pm
Forum: Coding Questions
Topic: Should I use SpiderBasic
Replies: 3
Views: 3215

Re: Should I use SpiderBasic

Regardless of my questions I already bought SB because it is very nice.

Still curious about my questions ;-)
by hotcore
Wed Jun 29, 2016 3:24 pm
Forum: Tricks 'n' Tips
Topic: Set document title
Replies: 6
Views: 6557

Re: Set document title

Thx. Had it working already (with lowercase name ;-)
by hotcore
Wed Jun 29, 2016 3:23 pm
Forum: Coding Questions
Topic: Saving a file
Replies: 1
Views: 2333

Saving a file

For opening a local file there is OpenFileRequester.

Is there something similar for saving a file??
by hotcore
Wed Jun 29, 2016 2:42 pm
Forum: Coding Questions
Topic: End-of-line characters
Replies: 1
Views: 2649

Re: End-of-line characters

Just found a solution using:

Code: Select all

      char.c = ReadCharacter(4)
      buffer = buffer + Chr(char)
However, still curious why the other solution does not work ...
by hotcore
Wed Jun 29, 2016 2:22 pm
Forum: Coding Questions
Topic: End-of-line characters
Replies: 1
Views: 2649

End-of-line characters

My first little project (half the way):
title.s = "Little File Editor"
EnableJS
document.title = v_title
DisableJS

Procedure FileRead(Status, Filename$, File, Size)
If Status = #PB_Status_Loaded
buffer.s = ""
While Not Eof(4)
line.s = ReadString(4)
buffer = buffer + line + Chr(10)
Wend ...