List Info

Thread: Fwd: "for" problem in 1.3v




Fwd: "for" problem in 1.3v
user name
2008-05-03 07:59:33


---------- Forwarded message ----------
From: dorin vatavu < dorin.vatavugmail.com">dorin.vatavugmail.com>
Date: Sat, May 3, 2008 at 12:20 PM
Subject: "for&quot; problem in 1.3v
To: Eric Laffoon < erickdewebdev.org">erickdewebdev.org>


Hi,
When I insert kommander function "for&quot; from editor gave
<for(&quot;i";, 1, 10) > or <for(i, 1, 10)>
but I receive an error when run it.
The correct syntax must be
<for i = 1 to 10 do>
Maybe could be modify&nbsp; the kommander-editor to insert the correct syntax
Have an nice day!


Re: Fwd: "for" problem in 1.3v
country flaguser name
United States
2008-05-05 11:36:39
On Saturday 03 May 2008 5:59:33 am dorin vatavu wrote:
> ---------- Forwarded message ----------
> From: dorin vatavu <dorin.vatavugmail.com>
> Date: Sat, May 3, 2008 at 12:20 PM
> Subject: "for" problem in 1.3v
> To: Eric Laffoon <erickdewebdev.org>
>
>
> Hi,
> When I insert kommander function "for" from
editor gave
> <for("i", 1, 10) > or <for(i, 1,
10)>
> but I receive an error when run it.
> The correct syntax must be
> <for i = 1 to 10 do>
> Maybe could be modify  the kommander-editor to insert
the correct syntax
> Have an nice day!

First of all there are no "<>" in either
parser. Second, the variable is set 
as QString which means it offers to quote it because of the
way the Function 
Browser is set up. As for the rest... It does show the
correct syntax for the 
new parser in the help section on the right. However it
operates in standard 
mode, which is to remove any "" and change any
function name syntax. 
Unfortunately that is not what needs changed here.

Obviously this can't be fixed without a new release, but I'm
not sure it's 
possible to fix without a special hack. The Function Browser
automatically 
extracts information from where functions are registered. We
can register for 
old, new or both parsers but it doesn't like the same
function for old and 
new. I will have to discuss with Andras how to make this
work without having 
to do a series of one off hacks.

Thanks for bringing this to my attention. I always just
write out for loops.

-- 
Eric Laffoon
Project Lead - kdewebdev module
_______________________________________________
Kommander mailing list
Kommanderkdewebdev.org

http://mail.kdewebdev.org/mailman/listinfo/kommander

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )