tssing Posted June 4, 2008 Share Posted June 4, 2008 Why I can't include "@" at first ?? for example:: var.strtest = "@hello" If you check strtest, you will find out Var.strtest value is "hello",,"@" missing,.. another way:: Var.strtest = "hello@hello" It will be true .... Link to comment Share on other sites More sharing options...
AzeoTech Posted June 4, 2008 Share Posted June 4, 2008 Using @ in a string as the first character is used by the multilingual feature of DAQFactory to specify a string that might be translated. By default, the @ is dropped and the rest of the string used, but if you had an alternative language specified with a translations for "hello", it would use the translation instead. Please see the help file/user's guide, "Pages and Components" -> "Creating multi-lingual applications". To put a real @ as the first character, simply put two: var.strtest = "@@hello" Also, @ only triggers the multilingual translation if its the first character of a string. Link to comment Share on other sites More sharing options...
tssing Posted June 5, 2008 Author Share Posted June 5, 2008 Please fix this problem..Because many protocol of device first character is "@".... Link to comment Share on other sites More sharing options...
AzeoTech Posted June 5, 2008 Share Posted June 5, 2008 Its not a problem, but a part of the language. You have two choices: var.strtest= "@@hello" or: var.strtest = chr(64) + "hello" Both will result in the string "@hello" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.