ret = formatNoValue.arg(name).arg(typeStr);\r
}\r
}\r
+ else if (type == String) {\r
+ typeStr = "string";\r
+ if (!userValue.isNull()) {\r
+ valueStr = "\""+userValue.toString()+"\"";\r
+ ret = formatValue.arg(name).arg(typeStr).arg(valueStr);\r
+ }\r
+ else if (!defaultValue.isNull()) {\r
+ valueStr = "\""+defaultValue.toString()+"\"";\r
+ ret = formatValue.arg(name).arg(typeStr).arg(valueStr);\r
+ }\r
+ else {\r
+ ret = formatNoValue.arg(name).arg(typeStr);\r
+ }\r
+ }\r
else {\r
typeStr = getTypeString();\r
if (!userValue.isNull()) {\r
if ((type == Boolean)||(type == Bit)) {\r
ret = format.arg(name).arg("'"+userValue.toString()+"'");\r
}\r
+ else if (type == String) {\r
+ ret = format.arg(name).arg("\""+userValue.toString()+"\"");\r
+ }\r
else {\r
ret = format.arg(name).arg(userValue.toString());\r
}\r
if ((type == Boolean)||(type == Bit)) {\r
ret = format.arg(name).arg("'"+defaultValue.toString()+"'");\r
}\r
+ else if (type == String) {\r
+ ret = format.arg(name).arg("\""+defaultValue.toString()+"\"");\r
+ }\r
else {\r
ret = format.arg(name).arg(defaultValue.toString());\r
}\r