We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2004-08-25 07:04 PM
2004-08-25 10:53 PM
tsturm wrote:Take a look at the STR function. For example, if A has the value 123, the expression STR(A, 3, 0) changes it to the string "123".
Problem is this express has syntax errors. I need to change the "A" and "drawernum" parameters into text values. How can this be done?
2004-08-26 05:57 AM
stringtext=134.56 SPLIT(stringtext," %n", stringnumber)Then I would get a number instead of text?
2004-08-26 10:33 PM
tsturm wrote:Close - try something like this:
Is it true that the SPLIT command will change numbers written as string into numbers?
For example the expression ofstringtext=134.56 SPLIT(stringtext," %n", stringnumber)Then I would get a number instead of text?
TIA
strVal = "123.45" numVal = 0 howMany = split(strVal, "%n", numVal)You will end up with the numeric equivalent of 'strVal' in 'numVal', and 'howMany' should be 1 to tell you that one value was extracted from the string.
2004-08-27 06:03 PM
part_num=159684 part_name=STR(part_num, 7, 0)to change numbers to text.