@Blueznl
I agree this:
varname.c[length]
why not add it as a variable instead of as a struct field?
var.c[5] = "12345"
it's effectively a fixed length string (which i would kill for)
is needed and you can do this:
part.c = var.c[2]
to just extract the '2' out of var.c above (see quote)
And your string routines will be FASTER, NO conversion on API calls!! Code will be easier (not for FRED i am afraid) And the size of the exe file will drop! Beter garbage collection! Better protection (on Pentuim processers) on poking OUTSIDE your string!! Must I go on on this? Better everything!!
@Kale, UNICODE?? (blah) remember ONE character is TWO BYTES!! So with var.u you only have 32k of string space!! And who needs that! It is peronally an joke from MS gone bad!! Did enyone noticed that the (FIRST) press release on UNICODE strings was on april FIRST!! I do not know the year, but noticed the DATE of this, later I heard that Bill G. was very angry but liked the idea (stupid!!!!) Just lazy programmers!! The rest of your VARS i like and as BluezNl said "die for"....
@FRED how about this? New VARS for version 4.0 (any day now??) and FIXED length string. Even if it means seperate routines!! We can add and 'F' or 'C' or 'X' allthough the 'x' is better for UNICODE strings. Personally I would like the 'C' for Character string!!
So like (now):
Result$ = Mid(String$, StartPosition, Length)
will be:
Result.c = MidC(String.c, StartPosition, Length)
or:
Result.c = CMid(String.c, StartPosition, Length)
The latter is better since the C in FRONT is noticed FIRST!!
or better maybe??
Result.c = Mid.c(String.c, StartPosition, Length)
(notice the MidC() and CMid() and the last the mid.c() [ the dot])
Jan