Jump to content











Photo
- - - - -

WinBuilder 078 SP3 Release Notes


  • Please log in to reply
No 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 02 November 2009 - 08:22 AM

There is a new functionality which demands a change in one or very rare cases: RegWrite of multiple strings
The magic wand gives the syntax:
RegWrite,HKLM,0x7,Section,Key(MultiString),value1,value2
Here value? can contain a comma, which would be written
RegWrite,HKLM,0x7,Section,Key(MultiString),value11#$cvalue12,value21#$cvalue22
That works well.
But if you add a value to the existing list of multiple strings, you do it like this
RegRead,HKLM,Section,Key,%var%

	 RegWrite,HKLM,0x7,Section,Key(MultiString),%var%#$cnewval
The issue here is that WinBuilder cannot decide whether newval should be appended as new string, or should be appended to the last string, including the comma.

To solve this, a new escape #$z is created for separating multiple strings:
RegWrite,HKLM,0x7,Section,Key(MultiString),%var%#$cnewval
appends ",newval" to the last string
RegWrite,HKLM,0x7,Section,Key(MultiString),%var%#$znewval
appends a new string "newval"
RegWrite,HKLM,0x7,Section,Key(MultiString),%var%#$znewval1#$cnewval2
appends a new string "newval1,newval2"

In order to be compatible, it is suggested, when changing existing scripts, to write different code lines depending on the WinBuilder version.


And there is a new command AddInterface:
[Process]

	  //AddInterface,Filenam,Prefix

	  AddInterface,%FundamentalsScript%,fun

	  Echo,"RAMDiveLetter is: %fun_pScrollBox1%"

Peter

EDIT: Sorry, this is still necessary:

I decide to post this new feature of wb078sp2 here since it maybe missed by some of our experienced and new users.
I thought it was a bug but it turned out to be a feature (check here)

As a result:
If you used Download at least once and want to check or download updates of new scripts,
After Clicking Download button, Also click green button upper left.

:cheers:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users