TIP: Click on subject to list as thread! ANSI
echo: clipper
to: ANDRS SARCEVIC
from: PEDRO LEONARDO GRANATA
date: 1997-12-08 23:06:00
subject: Array

Hola Andr‚s!
Andr‚s Sarcevic wrote in a message to All:
 AS> Tengo una variable con datos ingresados por el usuario. como mando
 AS> esa  variable a un array que tenga tantos elementos como caracteres
 AS> tenga esa  variable?
  Lo que te digo esta probado con Clipper 5.2
  cVar es la variable con la cadena de texto..
  nCant  := LEN(ALLTRIM(cVar))
  aArray := ARRAY(nCant)
  FOR i := 1 to nCant
      aArray[i] := SUBSTR(cVar,i,1)
  NEXT
  
  Ahi te queda en cada posicion de aArray una letra de cVar.
jak_bbs@geocities.com                                       ____The-piT____
http://www.geocities.com/ResearchTriangle/3118              þICQ # 3114907þ
                   þ Sk-NetWork þ La RED de PROGRAMACION þ 
--- 
---------------
* Origin: þJaK BBSþùú.úùú.úùþTLD 00 a 07hsþùú.úùú.úùþ572-4582þ (4:900/470)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.