Author | Message |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1069] - posted: 2012-05-11 21:40:53 sorry i did not get it. example please http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1070] - posted: 2012-05-11 21:53:22 Code:
anyways i would suggest for what you are trying to do then use FileEntry instead since it is better suited for such things. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1071] - posted: 2012-05-11 22:14:41 still did not know how to use Ziron_ExtractLin inside ProgramEntry handler? FileEntry did not allow use of excution. http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1072] - posted: 2012-05-11 22:34:00 With FileEntry, you would not use Ziron_Execute, instead you would use Ziron_SetFileBuffer Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1073] - posted: 2012-05-12 18:21:39 Hi Mr Colin, as i mentioned before , FileEntry is not my point here and i am not willing use it in this case because i want to Ziron execute something from plugin. so is programEntry will help here or not and if so , please give me an example of using it. thanks. http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1074] - posted: 2012-05-12 18:31:20 as i've said, what you are trying to do is not possible, simply because Ziron does not compile line by line, it is char to char. take these 2 examples Code:
now what you are wanting to do is get a line and then execute it.. so lets take a look first line Code:
execute -> syntax error. 2nd line Code:
execute -> syntax error. and so on...., like i've said, FileEntry would be your only option, using SetFileBuffer, you can go through line by line, changing anything you need to change, and then let Ziron process the whole new buffer. If you give me an exact description of what you actually want to do (if it is not just exec each line) then please give me a deep explanation and maybe i can implement some new pf functions to help in some better way. as for ProgramEntry, this would not be suitable. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1075] - posted: 2012-05-12 18:50:23 ok, what i want to do is , make a trick , because of Ziron is an assembler and not a compiler. i was thinking to get around this problem by the next consept Code:
hope you get my point. thanks. http://www.freewebs.com/ogremagic/index.htm |
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1077] - posted: 2012-05-12 20:57:47 ok then i would still suggest to use FileEntry, i've wrote some code for you to help understand the usage, i have not tested it and it is not fully correct, will need a little work, but should give you a good idea how to do what you want to do Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
Currently Active Users: There are currently 9 user(s) online. 0 member(s) and 9 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |