ComponentOne Sizer 8.0
PosAt Property

Returns the position of the specified field in the current line.

Syntax

val% = [form!]C1Awk.PosAt(index As Integer)

Remarks

This property was designed to be used with Visual Basic's string functions. The first string position is 1.

This property is useful when you want to process a field based on its contents rather than on its position. See also the FieldAt property, which performs the reverse function.

For example:

Example Title
Copy Code
' use the PosAt property to remove the first four fields from a record.
awk = "junk1 junk2 junk3 junk4 data5 data6 data7"
debug.print awk.PosAt(5)
25
debug.print Mid(awk,25)
data5 data6 data7

Data Type

Integer

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback