# Type coercion bug in FB Server 6.0.0.296

**URL:** <https://www.finalbuilder.com/forums/t/type-coercion-bug-in-fb-server-6-0-0-296/2983>\
**Category:** Bugs\
**Created:** [April 28, 2008, 12:35pm UTC](https://www.finalbuilder.com/forums/t/type-coercion-bug-in-fb-server-6-0-0-296/2983 "2008-04-28T12:35:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trms](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/trms/32/30_2.png) [@trms](https://www.finalbuilder.com/forums/u/trms)\
**Post date:** [April 28, 2008, 12:35pm UTC](https://www.finalbuilder.com/forums/t/type-coercion-bug-in-fb-server-6-0-0-296/2983/1 "2008-04-28T12:35:26Z")

</div>

Not sure if this has been addressed already, but I just came across what seems to be a variable typing problem in FinalBuilder Server 6.0.0.296. (running against FinalBuilder 6.0.0.574)  
  
**To reproduce:**

1. Create a FB project with a variable "my\_var"
2. Add the "Log Variable Values" action to record the value of my\_var
3. Save project
4. Add that project to FB Server
5. Set the my\_var project variable in FB Server to be "1.0"
6. Run the project in FB Server.

**Expected:**  
Log will output a value of "1.0" for my\_var.  
  
**Actual result:**  
Log outputs a value of "1" for my\_var.  
  
**Other notes:**

- Setting the my\_var value in FB Server to be "1\_0" or "1.5" behaves as one would expect; you get the correct value in the log.&nbsp;
- If you bypass FB Server completely by creating a brand new project, then include the original project with an "Include Project" action, and set my\_var to "1.0" in that action, then my\_var is logged as "1.0" as expected.&nbsp; Therefore, the problem seems to exists in FB Server only.

So... in the mean time, how can i coerce the value of a variable to remain a string? :-)  
  
Thanks,  
-John

---

<div class="post-metadata">

**Author:** ![trms](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/trms/32/30_2.png) [@trms](https://www.finalbuilder.com/forums/u/trms)\
**Post date:** [April 28, 2008, 12:54pm UTC](https://www.finalbuilder.com/forums/t/type-coercion-bug-in-fb-server-6-0-0-296/2983/2 "2008-04-28T12:54:18Z")

</div>

FWIW, I’ve gotten around this for now by making my variable in FB Server = “1.0\_”, then I use the “String Replace” task to remove all occurrences of “\_”. This seems to work fine, but I’d rather not have to do it. ![]( "Smile")   
  
 -John

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 30, 2008, 8:23am UTC](https://www.finalbuilder.com/forums/t/type-coercion-bug-in-fb-server-6-0-0-296/2983/3 "2008-04-30T08:23:14Z")

</div>

Hi John   
  
 This is not an FBServer problem, it’s actually an FBCmd problem. So far I haven’t found a workable solution to this other than the workaround you currently use. We will look into making it possible to specify the type from FBServer.
