Jump to content











Photo
- - - - -

General Question


  • Please log in to reply
12 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 04 March 2009 - 06:40 PM

At a different place I answered this:

I built a snippet following your description.

[process]

	 Set,%result%,"Does not work"

	 If,5,EQUAL,5,Set %Result%,"Works!"

	 Echo,%Result%
See missing comma behind 'Set'

In 072 the result has been the same like as if there had been a comma, in 076 it is not.

Is 076 now "Bad programmed"?

I really do not think so.

In 072 the uncorrect syntax has been understood correctly by 'good luck'. There is no code to solve such errors.
I do not know what happens with different user input mistakes.

And 076 shows you that there is something wrong.

Peter

Because I think that this question is very important, I repeat here.

I hope on your agreement that WinBuilder never tries to 'fix' user mistakes, but ALLWAYS gives an error.

Peter

#2 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 04 March 2009 - 10:24 PM

At a different place I answered this:

Because I think that this question is very important, I repeat here.

I hope on your agreement that WinBuilder never tries to 'fix' user mistakes, but ALLWAYS gives an error.

Peter

The answer is definitely 'NO'!

... :cheers: ... I mean 'YES'!

Sorry!? What was the question? ... :cheers: ...

... The new way is better! ... :cheers: ...

Regards :cheers:

#3 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 05 March 2009 - 02:40 AM

WinBuilder never tries to 'fix' user mistakes, but ALLWAYS gives an error.

%100 agree. (i guess no need to write the good reasons in mind :cheers: )

#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 March 2009 - 04:34 PM

I made a small change to WinBuilder, two additional options:
New_Check_options.gif
Lines starting with // or ## are treated as comment.
Other non-command lines are shown as warnings.

A first test with LiveXP recommended brought an interesting result:
New_Check_options_log.gif
@Galapo: Something to do for you!

@Medevil: Your WB072 will make you happy and neither process nor message these lines!

Peter :cheers:

#5 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 05 March 2009 - 05:41 PM

Is there a way to get my hand on this verbose version?

:cheers:

#6 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 March 2009 - 05:52 PM

Is there a way to get my hand on this verbose version?

:cheers:

I'm not authorized to publish it (you remember the troubles we have had with 075 beta nightlies, because nobody took care on any rules).

Post your complete test project anywhere and / or give the link. I'll build and post the log.

Peter

#7 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 06 March 2009 - 01:31 AM

Lines starting with // or ## are treated as comment.
Other non-command lines are shown as warnings.


So:

#--- Hello ---#
will show as a warning?

##--- Hello ---##
will show as a comment?

###--- Hello ---###
will also show as a comment?

and:

Hello
will show as a warning (assuming no API for 'Hello')?

Is that correct?

Where do the comments show in the log? In the beginning (as links), or throughout?

It sounds like a very good idea!

Regards :cheers:

#8 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 06 March 2009 - 01:37 AM

A first test with LiveXP recommended brought an interesting result:
New_Check_options_log.gif
@Galapo: Something to do for you!

Thanks, Peter. WB can now find bugs!

Regards,
Galapo.

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 March 2009 - 08:45 AM

So:

#--- Hello ---#
will show as a warning?

##--- Hello ---##
will show as a comment?

###--- Hello ---###
will also show as a comment?

and:

Hello
will show as a warning (assuming no API for 'Hello')?

Is that correct?

Where do the comments show in the log? In the beginning (as links), or throughout?

It sounds like a very good idea!

Regards :cheers:

All of your assumptions are correct.

The comments will appear in place.
The Unresolved as links and in place.

Peter

#10 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 07 March 2009 - 02:15 AM

Lines starting with // or ## are treated as comment.
Other non-command lines are shown as warnings.

I like that :cheers:.

Never wrote before but when making gui design sometimes i disable an option from interface but i want to keep it available for future purposes too, because wb dont support // or ##, at [Interface] section so far i open a new section [Interfacesave] and move lines to there.

can we have these work // or ## for [Interface] section, or another thing?

#11 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 March 2009 - 08:40 AM

I like that :cheers: .

Never wrote before but when making gui design sometimes i disable an option from interface but i want to keep it available for future purposes too, because wb dont support // or ##, at [Interface] section so far i open a new section [Interfacesave] and move lines to there.

can we have these work // or ## for [Interface] section, or another thing?

Not yet. Implementation seems to be difficult, because the complete interface is rewritten after changes.
And then the comments are 'unknown'.

Peter

#12 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 27 March 2009 - 12:09 AM

I made a small change to WinBuilder, two additional options:
Lines starting with // or ## are treated as comment.
Other non-command lines are shown as warnings.

Ok, so they become the official 'comment' command
In VistaPE , I remember that NightMan use sometime only one character '#' as comment ( just for info)

Pedro

#13 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 19 April 2009 - 09:36 AM

Ok, so they become the official 'comment' command
In VistaPE , I remember that NightMan use sometime only one character '#' as comment ( just for info)

Pedro


I think psc is aware of that. Possibly it's the reason for introducing it. Who knows? It's all very secretive.

Regards :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users