folder question

folder question

Postby Richard Chidiak » Mon Feb 17, 2014 9:31 pm

Hello

I wan to dynamically load prompt and dialogs for a folder, using dialog and resources.

The ideal will be something like

REDEFINE FOLDER oFld ID 201 OF oDlg PROMPTS zprmpts DIALOGS zdlgs ADJUST where zprmpts and zdlgs are tables containing the prompts and dialogs.

This does not work and errors at redefine method because of default value to len(aprompts).

Activate dialog on init(OFLD:SETPROMPTS(zprmpts)) does not help neither

Any clue ?

Thanks for help

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: folder question

Postby cnavarro » Mon Feb 17, 2014 9:37 pm

Richard Chidiak wrote:Hello

I wan to dynamically load prompt and dialogs for a folder, using dialog and resources.

The ideal will be something like

REDEFINE FOLDER oFld ID 201 OF oDlg PROMPTS zprmpts DIALOGS zdlgs ADJUST where zprmpts and zdlgs are tables containing the prompts and dialogs.

This does not work and errors at redefine method because of default value to len(aprompts).

Activate dialog on init(OFLD:SETPROMPTS(zprmpts)) does not help neither

Any clue ?

Thanks for help

Richard


If zprmpts and zdlgs are tables so you will have to appoint zprmpts[x] and zdlgs[x], no?
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6501
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: folder question

Postby Richard Chidiak » Mon Feb 17, 2014 9:49 pm

If zprmpts and zdlgs are tables so you will have to appoint zprmpts[x] and zdlgs[x], no?

I want them to be dynamically loaded at run time, so they may be different from one user to another.

Basically i would do ,;

REDEFINE FOLDER oFld ID 201 OF oDlg ;
PROMPTS zprmpts[1],zprmpts[2],zprmpts[3];
DIALOGS zdlgs[1],zdlgs[2],zdlgs[3] ADJUST

this is an example , in real case the table is up to 15 entries

i want this to be

ofld:aprompts := zprmpts
ofld:adialogs := Zdlgs

zprmpts and zdlgs would hold the prompts and dialogs.
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 28 guests