SRL Archive - Suggestions

Write(), ScriptPath


Sex

2011-12-30 15:32:39

Write would be cool to have.
ScriptPath already exists, I know, but I'd like to be able to get the filename and not just the directory of the current file. If it is an unsaved file then just return -1 or something :).

Sabzi

2011-12-30 16:34:56

Okay, just out of curiosity would be the current WriteLn be in Units/MMCore/client.pas?
Because whenever I try to find something in simbas source I just can't find it properly.

I know I should search docs probably(I will when I have more time and I am not tired), but where can I get a clue about simbas system? I mean how it works, how the procedure calls happen, where things are? I would love to understand it :p. I can't even find the "mainloop" …, I can't see through :(.


EDIT: Sorry for hijack.

Dgby714

2011-12-30 16:52:33

I could prob add like ScriptFile, currently ScriptPath is '' (blank) when the file is unsaved.
Write() on the other hand is quite a bit harder….
We currently use a TMemo which has a few limitations on adding a line without the newline at the end.

Also if you would like thinks added, ether write and submit code or file a bug.

From: Sabzi
Okay, just out of curiosity would be the current WriteLn be in Units/MMCore/client.pas?


No

Wizzup?

2012-01-02 19:43:33

File a bug for ScriptFile. :)