Our FB scripts fails after upgrading to FB 8.
Problem:
The Default Value for a Local Variable in an Action Group is not (re)evaluated when the Action Group is executed.
For example, if the Default Value expression contains another variable then this variable expands to the startup value and not the value is has when the Action Group is executed.
See example below (attachment refused by the site)
Migrated scripts from FB7.0 Build 3202 to FB8.0 Build 941
Win 7 SP1 Latest updates.
/Svend
project
begin
projectid = {07AF6583-50E1-45E5-86A2-9157E9A1144C}
target
begin
name = Default
targetid = {9EB83160-EAFF-4721-A7E8-A5DB2A781C9A}
rootaction
begin
action.variable.set
begin
applytoexisting = false
doexpandexpression = true
forcetype = ftString
id = {F4BDB720-42B4-42D8-828C-BB2BC029FFE7}
modifier = smNone
newvalue = Hallo
variablename = Var1
end
action.group
begin
id = {EE474A34-757B-41E3-9C0A-8218B5952218}
variable
begin
defaultvalue = %Var1%\Friends
name = Var2
variablescope = vtLocal
variabletype = btString
end
variable
begin
defaultvalue = First
name = Var3
variablescope = vtLocal
variabletype = btString
end
action.variables.logvalues
begin
failifnotdefined = true
id = {3DF7D4CF-A989-421D-AA2B-71D9EAC22921}
logallvariables = false
variablestoragestring = “Var2” +
“Var1” +
“”
end
action.gui.messagebox
begin
actiontypeid = {3D6458F4-1522-48B6-8446-D2DEE0A36D55}
customactionname = MessageBox
enabletimeout = false
id = {55A63500-6467-4585-955A-05760853E631}
impersonateusenetcredonly = false
impersonateuser = false
terminateontimeout = true
timeoutlength = 2
as.caption = Test
as.text = “Expected Output: %Var1%\Friends” +
“Actual Output: %Var2%”
as.buttons = 0
as.icon = 0
as.defaultbutton = 0
as.systemmodal = 0
as.returnvalue = 1
end
action.variable.set
begin
applytoexisting = false
doexpandexpression = true
forcetype = ftString
id = {C55F5490-2DFF-4B95-848F-A5627F769E79}
modifier = smNone
newvalue = Local
variablename = Var3
end
action.group
begin
id = {D6A34633-DD23-4DD7-B83D-A45E1A7E2A83}
variable
begin
defaultvalue = %Var3%\Value
name = Var4
variablescope = vtLocal
variabletype = btString
end
action.variables.logvalues
begin
failifnotdefined = true
id = {E2812760-9C92-4660-9727-DDE66011F6D4}
logallvariables = false
variablestoragestring = “Var4” +
“Var3” +
“”
end
action.gui.messagebox
begin
actiontypeid = {3D6458F4-1522-48B6-8446-D2DEE0A36D55}
customactionname = MessageBox
enabletimeout = false
id = {A017C280-F372-4376-9375-1EB05854C852}
impersonateusenetcredonly = false
impersonateuser = false
terminateontimeout = true
timeoutlength = 2
as.caption = Test
as.text = “Expected Output: %Var3%\Value” +
“Actual Output: %Var4%”
as.buttons = 0
as.icon = 0
as.defaultbutton = 0
as.systemmodal = 0
as.returnvalue = 1
end
end
end
end
end
variable
begin
defaultvalue = InitialValue
name = Var1
variablescope = vtProject
variabletype = btString
end
end
Thanks, this one was already reported and we’re currently testing a fix, should have an update out on monday.
This is fixed in 8.0.0.950 which is now available for download.