logo

Previous Thread:   Java Web Service: Faild to Add the Web Reference

6/2/2005 10:03:07 PM    Re: String manipluation inside an expression shape
Basically, it is a limitation for the current version.  
  
Workaround:  
  
1) You can call a .net helper assembly to do what you want, or  
  
2) wrap the string into a XML message and use "String Extract" of the String  
  
Functoids  
  
WenJun Zhang from Microsoft Online Partner Support wrote the following:  
  
" ...  
  
Currently we have the following limitations that may be removed in next version.  
  
Expression Support in XLANG/s:  
  
Simple types (integer, string, floating point) cannot have the dot  
  
operator applied to them, (viz., no member access)  
  
For non-simple types, you can only access public member functions and  
  
properties and static literal fields.  
  
Compound assignment (+=, -=, *=, etc) is not supported.  
  
Nor is more than one assignment operator in a statement.  
  
Assignment within an "if" or "while" predicate is not supported.  
  
Increment, decrement are not supported (++, --).  
  
For message parts, the only member access allowed is on distinguished  
  
fields.  
  
Indexers or parameterized properties are not supported.  
  
Delegates and events are not supported.  
  
Generics are not supported.  
  
foreach, for, do/while, break and continue are not supported.  
  
Ternary ops are not supported (viz., ?:).  
  
Comments work fine, but you need at least one statement in the  
  
expression box.  
  
Arrays are not supported.  
  
In construct shapes you cannot do any control flow (if/else or while).  
  
All valid expression statements are of the form:  
  
Dotted-name = expression ;  
  
Dotted-name.funcall(.) ;  
  
Where:  
  
Dotted-name :  
  
Identifier,  
  
Identifier . Dotted-name  
  
...."  
  
Reference: A recent thread "Search a String Variable"  
  
Henry Wong



6/3/2005 9:51:51 AM    String manipluation inside an expression shape
Hi,  
  
I have defined a 'System.String' variable to hold some string value in an  
  
expression shape next i wanted to extract a part of it using the 'Substring'  
  
method but i am not able do that.It doesnt allow me to put a dot next to my  
  
string variable. Why is it so.?  
  
Rgds