Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

divide a text to array

$
0
0
[quote="Silvio.Falconi":3134cd72]yes I know len function But U perhaps not understood what I wish. I explain you I have a string of n character (I not Know the Len of this string) I wish create a simply array with a string of 20 character each sample : aadd( atext,"12345678901234567890") aadd( atext,"12345678901234567890") aadd( atext,"12345678901234567890") the strings must be 20 charactes for a sample : I hace a string len( cstring) := 41 I must create 3 record ( 2 of 20 cr and 1 of 1 cr) but this one must be of 1 cr + space(19) allway 20 cr[/quote:3134cd72] Creo que si cada vez que tomes los primeros 20 usas una VAR auxiliar donde vas restando los ya usados, esa VAR te controlara el tamaño restante, cuando te queden 21 el Len(VarAux) sera igual a 21, luego Len(Var_Aux) sera 1, luego creo podrias usar la funcion PAD para el relleno de espacios, es la idea que se me viene a mente...saludos...

Viewing all articles
Browse latest Browse all 26212

Trending Articles