Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search an Array for duplicates
Message
 
To
22/05/2003 12:56:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00791559
Message ID:
00791730
Views:
23
Hi Amanda,
Not exactly on a subject, but if you enclose the sample VFP code in your posts in <PRE> </PRE> tags instead of bold tags, it will be color-coded and will preserve the formatting like this:
if ascan(laDBFInfo,'primekey',1,lnFieldNumber,1,1) = 0
  llFoundErrors = .t.
  gcmessage = gcmessage + 'Required column PRIMEKEY is missing.<br>'
else
  lnOccurs = 0
  for i=1 to lnFieldNumber
    if ascan(laDBFInfo,'primekey',i,lnfieldnumber,1,7) <> 0
	lnOccurs = lnOccurs + 1
    endif
  endfor
  if lnOccurs > 1
    llFoundErrors = .t.
    gcmessage = gcmessage + 'Duplicate column PRIMEKEY found.<br>'
endif
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform