[futurebasic] Re: Increasing DIM without crashing

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Paul Bruneau <paul_bruneau@...>
Date: Tue, 07 Apr 1998 08:22:18 -0400
I think you'd have to have your program determine which "version" of record it
is dealing with, then translate the old style to the new before it tries to
stuff 10 pounds into a five pound bag. Pretty yucky stuff as far as I'm
concerned. Don't know how Adobe does it so well. I just tell my users they
can't use their old files when this happens (They're captive!)

Robert Bryce wrote:
> 
> HELP!
> 
> For a series of records defined as;
> 
> DIM RECORD MTInfo
>   DIM 35 MTfontName$      'was 24
>  'Other stuff here
>   'etc
> DIM END RECORD.MTInfo
> 
> DIM gMT.MTInfo
> 
> I found it necessary to increase the DIM for fontName$
> (some fonts have horrendous long names).
> 
> PROBLEM: I have a series of dialogs with EDIT fields filled
> with these globals. I have been saving them all in parameter
> files and reading them back in. Various calculations are done
> with these. The EDIT fields are filled by FN's with info
> like EDIT$(_EFMTfontName)=gMT.MTfontName$. Works nicely.
> 
> If I increase the size of fontName$, this locks up the computer when reading
> in old parameter files DIMMed for 24 char long fontnames.
> 
> Is there a way around this without scrapping all old parameter
> files and having the updated program imcompatible with older
> files????? How can I increase the fontName$ Dimension without
> locking up the program when reading in the older shorter
> fontName$'s.
> 
> TIA
> 
> Bob
> 
>                                                           __ ____
> Bob Bryce               Canadian Bible Society          ||   |   ||
>                         Algonquian Translation Project  ||Itwewin||
> rbryce@...      Phone (306) 384-8225            ||   |   ||
> (rbryce@...)                                ||___ ___||
> 
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>