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

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

From: Joe Lewis Wilkins <PepeToo@...>
Date: Sat, 25 Sep 1999 17:10:19 -0700
Hi Brian,

Is the problem that FB^3 automatically converts integers to the appropriate
string. I seem to recall having heard that rumored - I think that encourages
sloppy programming. Microsoft uses it in their Visual Basic. Since I haven't
received my FB^3 yet, I probably shouldn't be responding to this, but????

I think if you change title$ = "Untitled "+n to----> title$ =
"Untitled"+STR$(n%) that it may work.
Don't forget that the STR$ function generates a space in front of it.

Joe Wilkins

Brian Heibert wrote:

> I have a window called "Untitled"  I have a string
>
> docwin$ = "Untitled"
>
> I also have this:
>
> num = 1
>
> I'd like to do this:
>
> wintitle$ = docwin$+num
>
> But that's Illegal
>
> I am using FB^3
>
> 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.
>
> Any help would be appreciated.
>
> Thanks,
>
> Brian Heibert
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>