Search and Search/Replace

The search and search/replace features in WordPerfect 6.0 are enhanced so that more specific codes can be searched for in the document.

The search string is a word string. This allows all WP characters to be represented. Functions are represented in the search string by translating them into an unsigned integer (one word) "special search code" which is in the range of 64256 (0xFB00) to 65279 (0xFEFF).

The first number on each line represents the search code value first in decimal and then in hex. The characters that follow in parentheses indicate if the functions can be searched (s), replaced (r), or search/replaced (s,r). The last piece of information is the label or name of the function represented by this value.

The following tokens are handled differently than normal search tokens. These tokens are not used on the DOS version of WP 6.0. Any of the functions below that have the "sp" indicator are used with these 3 search commands. Unless a "s" or "r" indicator accompanies the "sp" indicator, this function can only be used with these 3 tokens. These special search and replace tokens must be the same function type (although they will have different values) or an error will occur when the search takes place. In other words, a Left Margin Set must be replaced with another Left Margin Set.

SpSearchString(Token)

SpReplaceString(Token)

SpDeleteString(Token)

NON-FUNCTIONS

64256 (0xFB00)	(s)	single char match [?]

64257 (0xFB01)	(s)	multi char match [*]

SINGLE BYTE FUNCTIONS

64258 (0xFB02)	(s,r)	Hard Space

64259 (0xFB03)	(s,r)	Soft Hyphen "-"

64260 (0xFB04)	(s)	- Soft Hyphen EOL

64261 (0xFB05)	(s,r)	- Hyphen

64262 (0xFB06)	(s)	Auto Hyphen EOL

64263 (0xFB07)	(s,r)	Hyph SRt

64264 (0xFB08)	(s)	Dorm HRt

64265 (0xFB09)	(s,r)	End Cntr/Align

64266 (0xFB0A)	(s,r)	Exit Hyph

64267 (0xFB0B)	(s,r)	Cancel Hyph

64268 (0xFB0C)	(s,r)	Do Subtot

64269 (0xFB0D)	(s,r)	Subtot Entry

64270 (0xFB0E)	(s,r)	Do Total

64271 (0xFB0F)	(s,r)	Total Entry

64272 (0xFB10)	(s,r)	Do Grand Total

64273 (0xFB11)	(s,r)	Calc Col

64274 (0xFB12)	(s,r)	Math Neg

VARIABLE LENGTH FUNCTIONS

EOL_ GROUP

64275 (0xFB13)	(s)	SRt

64276 (0xFB14)	(s)	SRt-SCol

64277 (0xFB15)	(s)	SRT-SPg

64278 (0xFB16)	(s,r)	HRt

64279 (0xFB17)	(s)	HRt-SCol

64280 (0xFB18)	(s)	HRt-SPg

64281 (0xFB19)	(s,r)	HCol

64282 (0xFB1A)	(s)	HCol-HPg

64283 (0xFB1B)	(s,r)	HPg

64284 (0xFB1C)	(s)	Cell

64285 (0xFB1D)	(s)	Row

64286 (0xFB1E)	(s)	Row-SCol

64287 (0xFB1F)	(s)	Row-SPg

64288 (0xFB20)	(s)	HRow-HCol

64289 (0xFB21)	(s)	HRow-HCol-HPg

64290 (0xFB22)	(s)	HRow-HPg

64291 (0xFB23)	(s)	Tbl Off

64292 (0xFB24)	(s)	Tbl Off-SCol

64293 (0xFB25)	(s)	Tbl Off-SPg

64294 (0xFB26)	(s)	TSRt

64295 (0xFB27)	(s)	TSRt-SCol

64296 (0xFB28)	(s)	TSRt-SPg

64297 (0xFB29)	(s)	THRt

64298 (0xFB2A)	(s)	THRt-SCol

64299 (0xFB2B)	(s)	THRt-SPg

64300 (0xFB2C)	(s)	THCol

64301 (0xFB2D)	(s)	THCol-HPg

64302 (0xFB2E)	(s)	THPg

PAGE_ GROUP

64303 (0xFB2F)	(s,sp)	Top Mar

64304 (0xFB30)	(s,sp)	Bot Mar

64305 (0xFB31)	(s)	Suppress

64306 (0xFB32)	(s)	Pg Num Pos

64307 (0xFB33)	(s)	Cntr Cur Pg

64308 (0xFB34)	(s)	Cntr Pgs

64309 (0xFB35)	(s)	Wid/Orph

64310 (0xFB36)	(s)	Footnote Space

64311 (0xFB37)	(s)	Endnote Space

64312 (0xFB38)	(s)	Footnote Min

64313 (0xFB39)	(s)	Endnote Min

64314 (0xFB3A)	(s)	Footnote Num Each Pg

64315 (0xFB3B)	(s)	Footnote Cont Msg

64316 (0xFB3C)	(s)	Footnote Txt Pos

64317 (0xFB3D)	(s)	Footnote Sep Ln

64318 (0xFB3E)	(s)	Binding Width

64319 (0xFB3F)	(s)	Pg Border

64320 (0xFB40)	(s)	Paper Sz/Typ

64321 (0xFB41)	(s)	Labels Form

64322 (0xFB42)	(s)	Dbl-Sided Print

64323 (0xFB43)	(s)	Subdivided Pg

64324 (0xFB44)	(s)	Delay

64325 (0xFB45)	(s)	Delay On

64326 (0xFB46)	(s)	Delay Off

64327 (0xFB47)	(s)	Pg Num Fmt

64328 (0xFB48)	(s)	Txt Dir

64329 (0xFB49)	(s)	Header Sep

64330 (0xFB4A)	(s)	Footer Sep

COLUMN_ GROUP

64331 (0xFB4B)	(s,sp)	Lft Mar

64332 (0xFB4C)	(s,sp)	Rgt mar

64333 (0xFB4D)	(s)	Col Def

64334 (0xFB4E)	(s)	Col Border

PARAGRAPH_ GROUP

64335 (0xFB4F)	(s)	Ln Height

64336 (0xFB50)	(s)	Ln Spacing

64337 (0xFB51)	(s)	Lft HZone

64338 (0xFB52)	(s)	Rgt HZone

64339 (0xFB53)	(s)	Tab Set

64340 (0xFB54)	(s,sp)	Just

64341 (0xFB55)	(s)	Hyph

64342 (0xFB56)	(s)	Leading Adj

64343 (0xFB57)	(s)	Begin Gen Txt

64344 (0xFB58)	(s)	End Gen Txt

64345 (0xFB59)	(s)	Para Spacing

64346 (0xFB5A)	(s)	First Ln Ind

64347 (0xFB5B)	(s,sp)	Lft Mar Adj

64348 (0xFB5C)	(s,sp)	Rgt Mar Adj

64349 (0xFB5D)	(s)	Outline

64350 (0xFB5E)	(s)	Para Border

64351 (0xFB5F)	(s)	Math Def

64352 (0xFB60)	(s)	Math

64353 (0xFB61)	(s)	Ln Num

64354 (0xFB62)	(s)	Force

64355 (0xFB63)	(s)	Endnote Placement

64356 (0xFB64)	(s)	Def Mark

CHARACTER_ GROUP

64357 (0xFB65)	(s)	Dec/Align Char

64358 (0xFB66)	(s)	Thousands Char

64359 (0xFB67)	(s)	Undrln Space

64360 (0xFB68)	(s)	Undrln Tab

64361 (0xFB69)	(s,sp)	HAdv

64362 (0xFB6A)	(s,sp)	VAdv

64363 (0xFB6B)	(s)	Index

64364 (0xFB6C)	(s)	ToA

64365 (0xFB6D)	(s)	Target

64366 (0xFB6E)	(s)	Subdoc

64367 (0xFB6F)	(s)	Mrk Txt ToC Begin

64368 (0xFB70)	(s)	Mrk Txt ToC End

64369 (0xFB71)	(s)	Mrk Txt List Begin

64370 (0xFB72)	(s)	Mrk Txt List End

64371 (0xFB73)	(s)	Subdoc Begin

64372 (0xFB74)	(s)	Subdoc End

64373 (0xFB75)	(s)	Hidden Txt

64374 (0xFB76)	(s)	Ptr Cmnd

64375 (0xFB77)	(s)	Kern

64376 (0xFB78)	(s)	Color

64377 (0xFB79)	(s)	Char Shade Change

64378 (0xFB7A)	(s,sp)	Font

64379 (0xFB7B)	(s,sp)	Font Size

64380 (0xFB7C)	(s)	Lang

64381 (0xFB7D)	(s)	Comment

64382 (0xFB7E)	(s)	Dot Lead Char

64383 (0xFB7F)	(s)	Condl EOP

64384 (0xFB80)	(s)	Date

64385 (0xFB81)	(s)	Date Fmt

64386 (0xFB82)	(s)	Wrd/Ltr Spacing

64387 (0xFB83)	(s)	Just Lim

64388 (0xFB84)	(s)	Bookmark

64389 (0xFB85)	(s)	Block Pro:On

64390 (0xFB86)	(s)	Block Pro:Off

64391 (0xFB87)	(s)	Pause Ptr

64392 (0xFB88)	(s,sp)	Ovrstk

64393 (0xFB89)	(s)	Tbl Def

64394 (0xFB8A)	(s)	Writing Tools

64395 (0xFB8B)	(s)	Filename

64396 (0xFB8C)	(s)	Bar Code

64397 (0xFB8D)	(s)	Sound

64398 (0xFB8E)	(s)	Para Num

64399 (0xFB8F)	(s)	Hypertext Begin

64400 (0xFB90)	(s)	Hypertext End

64401 (0xFB91)	(s)	Change EOL Char

64402 (0xFB92)	(s)	Change BOL Char

64403 (0xFB93)	(s)	Link

64404 (0xFB94)	(s)	Link End

64405 (0xFB95)	(s)	Style Sep Comment

64406 (0xFB96)	(s)	Macro Func

64407 (0xFB97)	(s)	Formatted Pg Num

64408 (0xFB98)	(s)	Hidden On

46409 (0xFB99)	(s)	Hidden Off

64410 (0xFB9A)	(s)	Flt Cell Begin

64411 (0xFB9B)	(s)	Flt Cell End

DOCUMENT_REFERENCE_ GROUP

64412 (0xFB9C)	(s)	Ref Count

64413 (0xFB9D)	(s)	Ref Box

64414 (0xFB9E)	(s)	Ref Pg

64415 (0xFB9F)	(s)	Ref Sec Pg

64416 (0xFBA0)	(s)	Ref Chap

64417 (0xFBA1)	(s)	Ref Vol

64418 (0xFBA2)	(s)	Rev Para

64419 (0xFBA3)	(s)	Ref Footnote

64420 (0xFBA4)	(s)	Ref Endnote

HEADER_FOOTER_ GROUP

64421 (0xFBA5)	(s)	Header A

64422 (0xFBA6)	(s)	Header B

64423 (0xFBA7)	(s)	Footer A

64424 (0xFBA8)	(s)	Footer B

64425 (0xFBA9)	(s)	Watermark A

64426 (0xFBAA)	(s)	Watermark B

FOOTNOTE_ GROUP

64427 (0xFBAB)	(s)	Footnote

64428 (0xFBAC)	(s)	Endnote

SET_NUMBER_ GROUP

64429 (0xFBAD)	(s)	Count Set

64430 (0xFBAE)	(s)	Box Num Set

64431 (0xFBAF)	(s)	Pg Num Set

64432 (0xFBB0)	(s)	Sec Pg Num Set

64433 (0xFBB1)	(s)	Chap Num Set

64434 (0xFBB2)	(s)	Vol Num Set

64435 (0xFBB3)	(s)	Para Num Set

64436 (0xFBB4)	(s)	Footnote Num Set

64437 (0xFBB5)	(s)	Endnote Num Set

64438 (0xFBB6)	(s)	Ln Num Set

MATH_NUMBER_ GROUP

64439 (0xFBB7)	(s)	Count Meth

64440 (0xFBB8)	(s)	Box Num Meth

64441 (0xFBB9)	(s)	Pg Num Meth

64442 (0xFBBA)	(s)	Sec Pg Num Meth

64443 (0xFBBB)	(s)	Chap Num Meth

64444 (0xFBBC)	(s)	Vol Num Meth

64445 (0xFBBD)	(s)	Para Num Meth

64446 (0xFBBE)	(s)	Footnote Num Meth

64447 (0xFBBF)	(s)	Endnot Num Meth

64448 (0xFBC0)	(s)	Ln Num Meth

DISPLAY_NUMBER_ GROUP

64449 (0xFBC1)	(s)	Count Disp

64450 (0xFBC2)	(s)	Box Num Disp

64451 (0xFBC3)	(s)	Pg Num Disp

64452 (0xFBC4)	(s)	Sec Pg Num Disp

64453 (0xFBC5)	(s)	Chap Num Disp

64454 (0xFBC6)	(s)	Vol Num Disp

64455 (0xFBC7)	(s)	Para Num Disp

64456 (0xFBC8)	(s)	Footnote Num Disp

64457 (0xFBC9)	(s)	Endnote Num Disp

INCREMENT_NUNBER_ GROUP

64458 (0xFBCA)	(s)	Count Inc

64459 (0xFBCB)	(s)	Box Num Inc

64460 (0xFBCC)	(s)	Pg Num Inc

64461 (0xFBCD)	(s)	Sec Pg Num Inc

64462 (0xFBCE)	(s)	Chap Num Inc

64463 (0xFBCF)	(s)	Vol Num Inc

64464 (0xFBD0)	(s)	Para Num Inc

64465 (0xFBD1)	(s)	Footnote Num Inc

64466 (0xFBD2)	(s)	Endnote Num Inc

DECREMENT_NUMBER_ GROUP

64467 (0xFBD3)	(s)	Count Dec

64468 (0xFBD4)	(s)	Box Num Dec

64469 (0xFBD5)	(s)	Pg Num Dec

64470 (0xFBD6)	(s)	Sec Pg Num Dec

64471 (0xFBD7)	(s)	Chap Num Dec

64472 (0xFBD8)	(s)	Vol Num Dec

64473 (0xFBD9)	(s)	Para Num Dec

64474 (0xFBDA)	(s)	Footnote Num Dec

64475 (0xFBDB)	(s)	Endnote Num Dec

STYLE_ GROUP

64476 (0xFBDC)	(s)	Char Style On

64477 (0xFBDD)	(s)	Char Style Off

64478 (0xFBDE)	(s)	Para Style

64479 (0xFBDF)	(s)	Para Style Txt

64480 (0xFBE0)	(s)	Para Style End

64481 (0xFBE1)	(s)	Open Style

MERGE_ GROUP

64482 (0xFBE2)	(s,r)	BEEP

64483 (0xFBE3)	(s,r)	BREAK

64484 (0xFBE4)	(s,r)	CANCELOFF

64485 (0xFBE5)	(s,r)	CANCELON

64486 (0xFBE6)	(s,r)	CONTINUE

64487 (0xFBE7)	(s,r)	DATE

64488 (0xFBE8)	(s,r)	DEFAULT

64489 (0xFBE9)	(s,r)	DISPLAYSTOP

64490 (0xFBEA)	(s,r)	ELSE

64491 (0xFBEB)	(s,r)	ENDCASE

64492 (0xFBEC)	(s,r)	ENDFIELD

64493 (0xFBED)	(s,r)	ENDFOR

64494 (0xFBEE)	(s,r)	ENDIF

64495 (0xFBEF)	(s,r)	ENDRECORD

64496 (0xFBF0)	(s,r)	ENDWHILE

64497 (0xFBF1)	(s,r)	NEXT

64498 (0xFBF2)	(s,r)	NEXTRECORD

64499 (0xFBF3)	(s,r)	PAGEOFF

64500 (0xFBF4)	(s,r)	PAGEON

64501 (0xFBF5)	(s,r)	PRINT

64502 (0xFBF6)	(s,r)	QUIT

64503 (0xFBF7)	(s,r)	PROCESSON

64504 (0xFBF8)	(s,r)	RETURN

64505 (0xFBF9)	(s,r)	RETURNCANCEL

64506 (0xFBFA)	(s,r)	RETURNERROR

64507 (0xFBFB)	(s,r)	REWRITE

64508 (0xFBFC)	(s,r)	STEPOFF

64509 (0xFBFD)	(s,r)	STEPON

64510 (0xFBFE)	(s,r)	STOP

64511 (0xFBFF)	(s,r)	PROCESSOFF

64512 (0xFC00)	(s,r)	FEPOFF

64513 (0xFC01)	(s,r)	FEPON

64514 (0xFC02)	(s)	ASSIGN

64515 (0xFC03)	(s)	CALL

64516 (0xFC04)	(s)	CAPS

64517 (0xFC05)	(s)	CASE

64518 (0xFC06)	(s)	CASEOF

64519 (0xFC07)	(s)	CHAINMACRO

64520 (0xFC08)	(s)	CHAINDATA

64521 (0xFC09)	(s)	CHAINFORM

64522 (0xFC0A)	(s)	CHAR

64523 (0xFC0B)	(s)	CODES

64524 (0xFC0C)	(s)	COMMENT

64525 (0xFC0D)	(s)	CTON

64526 (0xFC0E)	(s)	DOCUMENT

64527 (0xFC0F)	(s)	EMBEDMACRO

64528 (0xFC10)	(s)	FIELD

64529 (0xFC11)	(s)	FIELDNAMES

64530 (0xFC12)	(s)	FIRSTCAP

64531 (0xFC13)	(s)	FOR

64532 (0xFC14)	(s)	FOREACH

64533 (0xFC15)	(s)	GETSTRING

64534 (0xFC16)	(s)	GO

64535 (0xFC17)	(s)	IF

64536 (0xFC18)	(s)	IFBLANK

64537 (0xFC19)	(s)	IFEXISTS

64538 (0xFC1A)	(s)	IFNOTBLANK

64539 (0xFC1B)	(s)	INSERT

64540 (0xFC1C)	(s)	KEYBOARD

64541 (0xFC1D)	(s)	LABEL

64542 (0xFC1E)	(s)	ASSIGNLOCAL

64543 (0xFC1F)	(s)	LOOK

64544 (0xFC20)	(s)	MRGCMND

64545 (0xFC21)	(s)	NESTDATA

64546 (0xFC22)	(s)	NESTFORM

64547 (0xFC23)	(s)	NEXTMACRO

64548 (0xFC24)	(s)	NTOC

64549 (0xFC25)	(s)	ONCANCEL

64550 (0xFC26)	(s)	ONERROR

64551 (0xFC27)	(s)	PROMPT

64552 (0xFC28)	(s)	STATUSPROMPT

64553 (0xFC29)	(s)	STRLEN

64554 (0xFC2A)	(s)	STRPOS

64555 (0xFC2B)	(s)	SUBSTDATA

64556 (0xFC2C)	(s)	SUBSTFORM

64557 (0xFC2D)	(s)	SUBSTR

64558 (0xFC2E)	(s)	SYSTEM

64559 (0xFC2F)	(s)	TOLOWER

64560 (0xFC30)	(s)	TOUPPER

64561 (0xFC31)	(s)	VARIABLE

64562 (0xFC32)	(s)	WAIT

64563 (0xFC33)	(s)	WHILE

64564 (0xFC34)	(s)	POSTNET

BOX_ GROUP

64565 (0xFC35)	(s)	Char Box

64566 (0xFC36)	(s)	Para Box

64567 (0xFC37)	(s)	Pg Box

64568 (0xFC38)	(s)	Graph Line

TAB_ GROUP

**** regular tabs ****

64569 (0xFC39)	(s,r)	Back Tab

64570 (0xFC3A)	(s,r)	Tbl Tab

64571 (0xFC3B)	(s,r)	LFT TAB

64572 (0xFC3C)	(s,r)	Lft Indent

64573 (0xFC3D)	(s,r)	Lft/Rgt Indent

64574 (0xFC3E)	(s,r)	Cntr on Mar

64575 (0xFC3F)	(s,r)	Cntr on Cur Pos

64576 (0xFC40)	(s,r)	CNTR TAB

64577 (0xFC41)	(s,r)	Flsh Rgt

64578 (0xFC42)	(s,r)	RGT TAB

64579 (0xFC43)	(s)	Tbl Dec Tab

64580 (0xFC44)	(s,r)	DEC TAB

*** soft tabs ***

64581 (0xFC45)	(s,r)	Lft Tab

64582 (0xFC46)	(s,r)	Cntr Tab

64583 (0xFC47)	(s,r)	Rgt Tab

64584 (0xFC48)	(s,r)	Dec Tab

64585 (0xFC49)	(s,r)	LFT TAB (DOT)

64586 (0xFC4A)	(s,r)	Cntr on Mar (Dot)

64587 (0xFC4B)	(s,r)	CNTR TAB (DOT)

64588 (0xFC4C)	(s,r)	Flsh Rgt (Dot)

64589 (0xFC4D)	(s,r)	RGT TAB (DOT)

64590 (0xFC4E)	(s,r)	DEC TAB (DOT)

*** soft tabs with dot leader ***

64591 (0xFC4F)	(s,r)	Lft Tab (Dot)

64592 (0xFC50)	(s,r)	Cntr Tab (Dot)

64593 (0xFC51)	(s,r)	Rgt Tab (Dot)

64594 (0xFC52)	(s,r)	Dec Tab (Dot)

*** generic tabs ***

64595 (0xFC53)	(s)	Lft Tab (all)

64596 (0xFC54)	(s)	Cntr on Mar (all)

64597 (0xFC55)	(s)	Cntr Tab (all)

64598 (0xFC56)	(s)	Flsh Rgt (all)

64599 (0xFC57)	(s)	Rgt Tab (all)

64600 (0xFC58)	(s)	Dec Tab (all)

64601 (0xFC59)	(s)	Tab (all)

PLATFORM_ GROUP

64602 (0xFC5A)	(s)	DDE Link Begin

64603 (0xFC5B)	(s)	DDE Link End

64604 (0xFC5C)	(s)	Publish Data Begin

64605 (0xFC5D)	(s)	Publist Data End

64606 (0xFC5E)	(s)	Subscribe Data Begin

64607 (0xFC5F)	(s)	Subscribe Data End

64608 (0xFC60)	(s)	Subtitle Mrk

64609 (0xFC61)	(s)	Subtitle Txt

64610 (0xFC62)	(s)	Subtitle Opt

64611 (0xFC63)	(s)	Subtitle Txt Opt

64612 (0xFC64)	(s)	Suppress Subtitle

64613 (0xFC65)	(s)	Third Party

FIXED LENGTH FUNCTIONS

Attribute On

64614 (0xFC66)	(s,r)	Ext Large On

64615 (0xFC67)	(s,r)	Very Large On

64616 (0xFC68)	(s,r)	Large On

64617 (0xFC69)	(s,r)	Small On

64618 (0xFC6A)	(s,r)	Fine On

64619 (0xFC6B)	(s,r)	Suprscpt On

64620 (0xFC6C)	(s,r)	Subscpt On

64621 (0xFC6D)	(s,r)	Outln On

64622 (0xFC6E)	(s,r)	Italc On

64623 (0xFC6F)	(s,r)	Shadw On

64624 (0xFC70)	(s,r)	Redln On

64625 (0xFC71)	(s,r)	Dbl Und On

64626 (0xFC72)	(s,r)	Bold On

64627 (0xFC73)	(s,r)	StkOut On

64628 (0xFC74)	(s,r)	Und On

64629 (0xFC75)	(s,r)	Sm Cap On

Attribute Off

64630 (0xFC76)	(s,r)	Ext Large Off

64631 (0xFC77)	(s,r)	Very Large Off

64632 (0xFC78)	(s,r)	Large Off

64633 (0xFC79)	(s,r)	Small Off

64634 (0xFC7A)	(s,r)	Fine Off

64635 (0xFC7B)	(s,r)	Suprscpt Off

64636 (0xFC7C)	(s,r)	Subscpt Off

64637 (0xFC7D)	(s,r)	Outln Off

64638 (0xFC7E)	(s,r)	Italc Off

64639 (0xFC7F)	(s,r)	Shadw Off

64640 (0xFC80)	(s,r)	Redln Off

64641 (0xFC81)	(s,r)	Dbl Und Off

64642 (0xFC82)	(s,r)	Bold Off

64643 (0xFC83)	(s,r)	StkOut Off

64644 (0xFC84)	(s,r)	Und Off

64645 (0xFC85)	(s,r)	Sm Cap Off

Generic Search Functions

64646 (0xFC86)	(s)	Paragraph End (all)

64647 (0xFC87)	(sp)	Style

64648 (0xFC88)	(s)	MRG: (all)

64649 (0xFC89)	(s)	Box (all)