View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Nov 06, 2006 6:44 pm Post subject: |
|
|
Garrett, you are right your example doesn't work, it is because you used uppercased if-else-end commands. I already made sure all "normal" commands could be both upper and lowercase, but forgot the conditional and loop commands When renaming If to if, Else to else and End to end it does work. It will be fixed with new versions of the interpreter
Code: | REM _____________________________________________________
REM |\___________________________________________________/|
REM | | | |
REM | | SOURCE TITLE: GT-HtmlStrip | |
REM | | ------------ | |
REM | | SOURCE AUTHOR: Garrett R. Hylltun | |
REM | | ------------- | |
REM | | DATE: 20 April, 2001 | |
REM | | ---- | |
REM | | REQUIREMENTS: VDS 2.x, 3.x, 4.x, 5.x | |
REM | | ------------ | |
REM | | SOURCE STATUS: Public Domain | |
REM | | ------------- | |
REM | | SOURCE DESCRIPTION: | |
REM | | ------------------ | |
REM | | This is an example which shows you how to | |
REM | | strip html tags from a single line. | |
REM | |_________________________________________________| |
REM |/___________________________________________________\|
REM --- |-------------------------------------------------| ---
REM --- | %A is the variable holding the string input. | ---
REM --- |-------------------------------------------------| ---
%A = <FONT face=Verdana>If <B>you</B> see any html <I>tags</I> in this message <U>then</U> this example obviously has failed you.</font>
repeat
if @greater(@pos(<,%A),0)
%B = @pos(<,%A)
%C = @pos(>,%A)
If @equal(%B,1)
%D =
Else
%D = @substr(%A,1,@fsub(%B,1))
End
%E = @substr(%A,@sum(%C,1),@len(%A))
%A = %D%E
end
until @not(@greater(@pos(<,%A),0))
INFO %A |
k0t, I think this might be the problem with your scripts too. Try this example:
Code: | info "@len example:" @len(This string is 28 characters)
info The middle three numbers: @substr(123456789,4,6) |
Another thing might be that your scripts use long-variables. In difference to VDS, this interpreter only needs one leading %-sign to work
Garrett, I am trying to find out how I can let styles work. I can say for sure most "dialog create" styles will not be able to work, since there is no equivalent for them in javascript. Dialog element styles don't have this limitation. The only thing about those is that almost all browsers use different functions to dynamically create CSS stylesheets which are needed to append styles to elements.
Connecting to a MySQL (or any other database) will become possible. I only do not know what is wise to do yet. I can convert my interpreter to let is also run server side, but then your host will need to let you use server side jscript (and I don't think many hosters will allow this). Another problem is that every platform has its own method of letting javascript communicate with external objects like databases, which I have to implement ALL.
Another solution for me is to create a small ASP and PHP front end to a database which can be called from the VDS interpreter after which your scripts can query the database directly by the use of the ASP or PHP script and the use of AJAX. The downside of this method is that you still have to do a little of ASP or PHP coding, to prevent users from running SQL code by hand (by simply editing your VDS scripts' source code). Or I can let it work with SQLite and IP/computer-based sessions so that every user has it's own database so they can only demolish their own and not the ones of all other people which use your scripts
The third solution which came to my mind, is to use the normal VDS compiler together with database DLLs or DSUs and let it run on a Windows server through the CGI-interface.
But, before I really start working on the server side part of it, I first want to talk to some people to decide which way to go
Edit: I couldn't stop myself and [ uploaded the fixed version ] for the problem Garrett encountered _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Nov 07, 2006 12:28 am Post subject: |
|
|
Hey Skit,
Thanks for the info. If you can't add styles, oh well. As for the other stuff,
I'd really rather not see this thing get too complicated.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Nov 07, 2006 2:47 pm Post subject: |
|
|
Skit,
I must applaud your efforts on this project. It has come a very long way since you originally showed this to me. I am very impressed. _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Mon Dec 11, 2006 7:18 am Post subject: |
|
|
I noticed that this thread has been quiet for a while, so I thought I'd try and re-start it.
How difficult would it be to have COMBO dialogs, that I can assign LISTS to. Currently I just loadtext into it (in native VDS), or load a list from a file. Are COMBOs possible in java?
Also data storage is important as I'd have to save the data input, and ideally that should be in MySQL or something similar.
I agree with Julian through, I would pay at least 100 US for such a product!? _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Dec 11, 2006 6:53 pm Post subject: |
|
|
Right now I am in contact with a company which might want to buy this project so I stop working on it for a little while until things are clear. If not, or not for a reasonable compensation, I will restart development and add lists/combo's and the ability to load and save files _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Wed Feb 07, 2007 3:43 am Post subject: |
|
|
Hi Skit!
How did you get on with the other company!?
If positive, is there likely to be a release soon? If negative, I would be interested in funding development as well...
Regards _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Feb 08, 2007 5:58 pm Post subject: |
|
|
Sweet. I look forward to using it. I haven't tried anything too much yet because I was waiting. Thanks! _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Feb 09, 2007 12:57 am Post subject: |
|
|
me too
i don't particularly want to learn javascript and this will be fantastic as i won't have too
serge _________________
|
|
Back to top |
|
|
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Fri Feb 09, 2007 1:09 am Post subject: |
|
|
Hi Serge, I am in your part of the world at the moment (Bali) and now understand how frustrating it is to be 8 hours ahead of everybody else!
However, back to Europe in a couple of weeks! _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Feb 09, 2007 1:37 am Post subject: |
|
|
hi andy,
welcome to the southern hemisphere and my part of the world
serge _________________
|
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri Feb 09, 2007 2:30 am Post subject: |
|
|
I keep forgetting that Serge is a fellow Aussie. There's 4 of us here, that I know of.
What part of Oz are in, Serge? _________________ cheers
Dave |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Feb 09, 2007 2:44 am Post subject: |
|
|
i am in melbourne, a city voted the best to live in a few times ... not that i noticed living here
actually, i am a french man born and bred in morocco (casablanca) and now living in australia ... it's a looooooong story
where are you dave?
serge _________________
|
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri Feb 09, 2007 2:49 am Post subject: |
|
|
Sydney... born and raised here.
The other 2 Aussies that I know here are from Brisbane. _________________ cheers
Dave |
|
Back to top |
|
|
|