Search these areas:
Support Forums
Product Info

-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Data Analysis
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-New Responsive UI Module

DataWeb Help
Support Forums
Script Library
Knowledge Base

Home > Support

Support Forum

Using string.Split()
djmakowski asked:
I want to use string.Split(delimiter) as part of a function Data_AfterInsert(record, previous).  I am getting this error, 
Bad input symbol: expected ')', found ';' at line 6, character 36. 

The semicolon is my delimiter. var x = string.Split(;);  I have tried replacing the semicolon with other characters (* , : etc) but I get the same error.  The only one that works is (_) underscore.  My script still failed and the error log said that I had needed to declare _ (underscore) as a variable.

My questions are:
1) Shouldn't I be able to use string.split() here?
2) If yes any ideas what I am missing?

If you need more info let me know.
  nicks responded:
  What you want is:
var x = myString.split(";");

You need to quote the string that you're passing as the delimiter.
  djmakowski responded:
  Thanks for catching that stupid mistake.  
  djmakowski responded:
  DataWeb considers this issue closed.
If you have additional questions or comments about this issue, please open it again.
If you have questions about a different topic please open a new support question.

DataWeb Support
  Please Log On
or create your own DataWeb Account.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us