For i in $ select more problem

Hi i was wondering how i can Change $*RG145* to anything i input in SMI Edittext
so it searches for what i input instead of RG145
this is my code...
thanks

button check " Find " enabled:true pos:[165,20]
edittext SMI "Search" pos:[20,20] visible:true width:125 height:20
---------------------------------------------------------------
on check pressed do
(

-----------------------------------RG1------------------------------
for i in $*RG145* do selectmore i
---------------------------------------------------------------------
)
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	global rol_
	try(destroyDialog rol_)catch()
	rollout rol_ ""
	(
		button check " Find " enabled:true 
		edittext SMI "Search" width:125 height:20
	---------------------------------------------------------------
		on check pressed do
		(
			objsToSellArr = for i in objects where (matchPattern i.name pattern:("*"+SMI.text+"*")) collect i
			selectMore objsToSellArr
		)
 
	)
	createdialog rol_ 		
)
Mrjacks2o's picture

Thanks

Thanks Miauu helped me allot!!!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.