I'm new to PB9, coming from VB6. I can't seem to get the Display Browse statement to work. If I just use the following code in my program...
DISPLAY BROWSE 0, "Select Working Directory", "C:\DataFile\", _
%BIF_NEWDIALOGSTYLE OR %BIF_USENEWUI OR %BIF_VALIDATE
I get an Error 420 - Relational operator expected
OK, so I make sFolder a local string variable and...
sFolder = DISPLAY BROWSE 0, "Select Working Directory", "C:\DataFile\", _
%BIF_NEWDIALOGSTYLE OR %BIF_USENEWUI OR %BIF_VALIDATE
This generates an error 519 - Missing declaration: Browse
Wait a minute. This is a PB9 function. I thought I did not have to declare it, or at least that's what the help files would lead you to believe.
So then I got rid of the compiler directive DIM ALL and that generated an error 516 - DEFtype, Type ID or type-specifier (?%&!#$), or AS ... required : Browse
At this point I'm taking a break and asking for help.
DISPLAY BROWSE 0, "Select Working Directory", "C:\DataFile\", _
%BIF_NEWDIALOGSTYLE OR %BIF_USENEWUI OR %BIF_VALIDATE
I get an Error 420 - Relational operator expected
OK, so I make sFolder a local string variable and...
sFolder = DISPLAY BROWSE 0, "Select Working Directory", "C:\DataFile\", _
%BIF_NEWDIALOGSTYLE OR %BIF_USENEWUI OR %BIF_VALIDATE
This generates an error 519 - Missing declaration: Browse
Wait a minute. This is a PB9 function. I thought I did not have to declare it, or at least that's what the help files would lead you to believe.
So then I got rid of the compiler directive DIM ALL and that generated an error 516 - DEFtype, Type ID or type-specifier (?%&!#$), or AS ... required : Browse
At this point I'm taking a break and asking for help.
Comment