[futurebasic] Re: [FB] Doc Window with Number question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Sun, 26 Sep 1999 10:57:50 +0200

Brian Heibert wrote:

>
> What I am trying to gain doesn't use a random number generator, I am
> trying to get it so when the window  is first built it's window title is
> "titlename "+ the number 1
> if that window get's closed the next windows go on in order
> for example if 1 was closed 2 would come up:
>
> "titlename "+ the number 2
>
> Here is my code so far:
>
> LOCAL FN buildWindowClass1
> stringt = "Untitled "
> n = 0
> n = n +1
> title$ = "Untitled "+n
>   WINDOW _windowClass1,title$,(  32,  59)-( 595, 457), 1033
>    string1$ = "Use common HTML formmating (<B> BoldText </B>)"
>    TEXT _Times,12,_boldbit%:COLOR=_zRed
>   EDIT FIELD _EF1WClass1,string1$,(   4,   4)-( 544, 379), 4,_leftJust
>   TEXT _Times,12,0:COLOR=_zBlack
> END FN
>
> It doesn't work.
>

Brian,

It does work for me. You must check two options in the Preferences:
Compiler pane : Allow x = AnyText$
DBug pane : Show errors, but skip warnings

Regards

Alain