Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is that command that returns words from text?
Message
De
22/01/2008 01:44:31
 
 
À
22/01/2008 00:59:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01283877
Message ID:
01283912
Vues:
26
As Murphy knows, sooner or later lcRgb6 will actually be RGB3
lcRgb6="RGB(1,2,3,4,5,6)"
dimension a[6]
a=0
for i=2 to getwordcount(m.lcRgb6, "(),")
   a[i]=val(getwordnum(m.lcRgb6, i, "(),"))
ENDFOR
DISPLAY MEMORY LIKE a
if really only a string "RGB(x,y,z)" is needed and the val() above is not needed *and* lcRGB6 is always well formed,
lcRGB1 = Alltrim(Left(m.lcRGB6, at(m.lcRGB6, ",", 3)-1) + ")" )
lcRGB2 = "RGB(" + Alltrim(Subst(m.lcRGB6, at(m.lcRGB6, ",", 3)+1) )
should work faster...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform