Volatile:SearchFL
From Metabolomics.JP
				
								
				(Difference between revisions)
				
																
				
				
								
				| Line 1: | Line 1: | ||
| − | {{#tag:form|method="post" action="/wiki/  | + | {{#tag:form|method="post" action="/wiki/Volatile:SearchFL"|  | 
===3rd and 4th Digit 3,4桁===  | ===3rd and 4th Digit 3,4桁===  | ||
| Line 110: | Line 110: | ||
{{#tag:input|type="submit" value="Search"}}</p>  | {{#tag:input|type="submit" value="Search"}}</p>  | ||
| + | }}  | ||
| + | |||
| + | <!---データを受け取って処理する側--->  | ||
| + | |||
| + | {{#lua:  | ||
| + |   digit = {};  | ||
| + |   for word in stdin:gmatch("%S+") do  | ||
| + |     table.insert(string.sub(word,2));  | ||
| + |   end  | ||
| + |   print(table);  | ||
| + | |  | ||
| + | 3:{{#get:34}} 5:{{#get:5}} 6:{{#get:6}} 7:{{#get:7}} 8:{{#get:8}}  | ||
}}  | }}  | ||
Revision as of 15:38, 29 June 2008
./lua: /tmp/mw_ex_lua_W29DTX:3: bad argument #1 to 'insert' (table expected, got string)