PDA

View Full Version : work with combobox


alxx
03-16-2006, 12:12 PM
hi, please help me... it is very important 4 me..

i would like to work with my combobox like this...

i would like to set there some items and when i choose on of them i will open some WORD file/or other page in AUTOplay studio...

thanks a lot!

Mina
03-16-2006, 12:25 PM
I have an example in my site (http://ams.mina-e.com) that jumps to a specific page based on a Combobox Object''s On Select actions. You could use the same method but with actions other than the Page jumps.

alxx
03-16-2006, 12:31 PM
thank you very much!

and it is possible to open with COMBO BOX some WORD file? how action must i used? (open.file) ???

thanx: i am LAMA i know :D

I have an example in my site (http://ams.mina-e.com) that jumps to a specific page based on a Combobox Object''s On Select actions. You could use the same method but with actions other than the Page jumps.

Mina
03-16-2006, 12:48 PM
Yup, you could use File.Open to open a word file with its default viewer

alxx
03-16-2006, 12:52 PM
and other question

how can i do with INPUT OBJECT this action.

I would like to input (fill in) some number of PAGE and push the enter button and the PAGE will show there.... it is possible????

thanx!

!!!!!!!!!!

Mina
03-16-2006, 02:59 PM
Hi Alxx.

Check out
Page Jump Based On Input Object (www.mina-e.com/ams.html)

alxx
03-16-2006, 03:37 PM
i must thank you very mutch... you helped me so much... please send me your emeil with your contacts... i would like to thank you specially in email :) GOOD NIGHT

Mina
03-16-2006, 03:41 PM
i must thank you very mutch... you helped me so much... please send me your emeil with your contacts... i would like to thank you specially in email :) GOOD NIGHT

No need for that :)
Glad i could help

alxx
03-16-2006, 03:53 PM
so i will to ask you if i have a problem...i try to do this thing for a long time.... thats great! :)

have a nice day/night if you going to visit czech republic sometimes....you are WELCOME! :)

alxx
03-16-2006, 04:07 PM
this is the code:

Pages = Application.GetPages();
Request = Input.GetText("lk");
Num = Table.Count(Pages);
Input = String.ToNumber(Request);
if Input > Num then
result = Dialog.Message("Notice", "There are only "..Num.." Pages!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
Page.Jump(Pages[Input]);
end

if i understand it right, that show me pages (jump on pages) under the SOME NUMBER....is it possible to show me some CALLED (named) pages??

ii hope that you understand right.... i would to show only some specific pages...not all....

Mina
03-16-2006, 05:34 PM
this is the code:

Pages = Application.GetPages();
Request = Input.GetText("lk");
Num = Table.Count(Pages);
Input = String.ToNumber(Request);
if Input > Num then
result = Dialog.Message("Notice", "There are only "..Num.." Pages!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
Page.Jump(Pages[Input]);
end

if i understand it right, that show me pages (jump on pages) under the SOME NUMBER....is it possible to show me some CALLED (named) pages??

ii hope that you understand right.... i would to show only some specific pages...not all....

Do u mean using Page Names instead of their Numbers in order ?
If yes, then you could change the code to:


Request = Input.GetText("lk");
Page.Jump(Request);

Mina
03-16-2006, 05:44 PM
You could also expand your code this way;

Request = Input.GetText("lk");
P_table = Application.GetPages();
Pages = Table.Concat(P_table, "-", 1, TABLE_ALL);
Found = String.Find(Pages, Request, 1, false);
E = "-1"
G = String.ToNumber(E);
if Found == G then
result = Dialog.Message("Notice", Request.." cannot be found!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
elseif Found ~= G then
Page.Jump(Request);
end

playmenow
03-17-2006, 01:14 AM
just a slight fix:

result = Dialog.Message("Notice", Request.." cannot be found!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

Than can be removed, because the dialog has no input and just the OK button...