[futurebasic] Doc Window with Number question

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

From: Brian Heibert <brian0821@...>
Date: Sat, 25 Sep 1999 18:41:47 -0500
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