Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JustExt() in VFP6
Message
De
06/10/1998 15:43:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00143188
Message ID:
00144350
Vues:
21
>>This was in a method of a formclass, and misbehaved even after recompiling (several times), and stopped misbehaving when it was handed a local variables instead of an object property. Well, nothing new - old FoxTools functions (depending on version) refused to accept a memo field, or a string longer than 255 chars and things like that - this kind of makes me feel at home.
>
>Hi Dragan,
>
>Yeah, I know. The old foxtools JustStem(), JustExt() did have trouble with long file names. As far as I know, you shouldn't have any problems with a filename 260 characters or less in VFP 6.0. That's the current value of MAX_PATH. I don't know if a longer string will cause it any problems, but it wouldn't surprise me if a 261 character string maxed the function out. I don't know for certain though. I'll have to check.

Just to add - I didn't have problems with length this time - the string I was pulling extension out of was just something like "alias.fieldname". Funny, though, it worked in DOS, and it never complained that fieldname was longer than three characters most of the time. It was just that JustExt(this.controlsource) complained it couldn't find the JustExt function (!). When I copied this.controlsource into a variable, it extracted extension from it just fine.

And the 255 char limit reappears where you least suspect it: I was doing an invoice report these days, and I needed to cram up some long memo text at the end of it (group summary or report summary band, can't remember exactly), and it didn't want to work directly from the memo. Anyway, I've moved it into a report variable - and it printed only the first 255...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform