FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour folder question
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

folder question

Posted: Mon Feb 17, 2014 09: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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: folder question

Posted: Mon Feb 17, 2014 09: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
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

Re: folder question

Posted: Mon Feb 17, 2014 09: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

Continue the discussion