PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: martinp on July 30, 2024, 08:41:32 PM

Title: Replacing a folder? [Solved]
Post by: martinp on July 30, 2024, 08:41:32 PM
I have 5 folders, and the second folder say folder "B" I want a different panel to be there based on certain conditions on entering the main program.

I used to be able to easily set _F_OBJ$[2,0]="NEW_FOLDER.FD2"  (I want an entirely new Nomads panel there not just switch tabs)

However this is no longer possible.

I am trying to use FLDR'GetPanelNames$() and FLDR'SetPanelNames$() I am struggling to figure out when or how this works as it just isn't working for me.

$01$+"FLDR1"+$01$+"FLDR2"+$01  It just doesnt seem to save it.  I tried a FDLR.ReDraw() and it seemed to do something but not what I want.

If I find the answer I'll post.  Right now I am stuck.  Thanks
Title: Re: Replacing a folder?
Post by: martinp on July 30, 2024, 08:48:38 PM
I set it on FOP but it doesn't stick once the panel is up.
Title: Re: Replacing a folder?
Post by: martinp on July 30, 2024, 10:28:00 PM
I figured it out.

let X=FLDR'GETTAB(2); let X'PANELNAME$="MYNEWFOLDER.EXT"