Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is that command that returns words from text?
Message
From
22/01/2008 01:44:31
 
 
To
22/01/2008 00:59:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01283877
Message ID:
01283912
Views:
25
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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform