folder question

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

folder question

Post by Richard Chidiak »

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
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: folder question

Post by cnavarro »

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?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: folder question

Post by Richard Chidiak »

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
Post Reply