Originally Posted By: kkoser
Hi everybody.

i have a var. %npoint. this is a nick.
also a var. %cpoint. this is a number.
i have a listbox (AutoList 208)that gets populated with nicks and a number.
i.e.
john 20
bob 30
jill 20
jane 50

i need to create a loop to search the listbox for %npoint. Then add the %cpoint to the existing number.

a push in the right direction would be greatly appreciated. i understand the $calc function, but i am having trouble with setting up the loop.

Yes i'm a newbie but i am learning. smile



$didwm w/ $did text

Example:.

One of my listbox values are,...

kkoser 20

Syntax: $did(dialogname,dialogid,$didwm(dialogname,dialogid,*kkoser*,0)).text

that will pull the data that finds kkoser in the listbox now if I want to change the value raw I would just do

Syntax: //did -o dialogname dialogid nth $reptok($did(dialogname,dialogid,$didwm(dialogname,dialogid,*kkoser*,0)).text,20,21,32)

That would take 20 has data and change it too 21 now if you are not sure of the nth of the line in your dialog that's why I use $didwm it returns the nth.

$didwm(dialogname,dialogid,*word*,0)

SO basically that's how you find, and edit in your listbox an entry it's up to use on how your gonna change the value

I basically gave you a how to search for data, a how to overwrite data so again all you have to do is just manipulate that data whichever way you want.

Why use a loop when you don't need one? smile


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }