home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
TEXT
/
PDX_ALL.ZIP
/
TI519.ASC
< prev
next >
Wrap
Text File
|
1991-09-11
|
1KB
|
67 lines
PRODUCT : PARADOX NUMBER : 519
VERSION : ALL
OS : DOS
DATE : September 11, 1991 PAGE : 1/1
TITLE : EXAMPLE SCRIPT TO REMOVE LEADING BLANKS
FROM ALL RECORDS FOR A SINGLE FIELD
In the example below, we are modifying a field named "Short"
within a table named "Tabname". The script removes the leading
blanks from all the "Short" values within the table "Tabname".
Edit "Tabname" ; Place table in edit mode.
Scan ; Scan each element in table.
while true ; Loop until all blanks are removed.
if match([Short]," ..",temp) = false then
quitloop ; Leave while-loop, if
endif ; no leading blanks exist.
[Short] = temp
; Update field value each
; time a blank is removed with the
; temporary variable temp.
EndWhile
EndScan
Do_It! ; Save all changes.