DataInterfaceStream - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Connectivity : Database Package : DataInterfaceStream : Database/DataInterfaceStream/Skip

DataInterfaceStream

 Skip
 skip a block of the data stored in the DataInterfaceStream module

 Calling Sequence stream:-Skip( number )

Parameters

 stream - DataInterfaceStream module number - integer; amount of data to skip

Description

 • The Skip command skips the next number elements of data from stream without returning any data.  If stream stores character data, each element is a single character.  If stream stores binary data, each element is a byte.
 • If there are less than or equal to number elements in the stream, then no more data will be available for reading after the call to Skip.

Examples

 > $\mathrm{driver}≔\mathrm{Database}[\mathrm{LoadDriver}]\left(\right):$
 > $\mathrm{conn}≔\mathrm{driver}:-\mathrm{OpenConnection}\left(\mathrm{url},\mathrm{name},\mathrm{pass}\right):$$\mathrm{res}≔\mathrm{conn}:-\mathrm{ExecuteQuery}\left("SELECT * FROM stream"\right):$$\mathrm{res}:-\mathrm{Next}\left(\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{res}:-\mathrm{GetData}\left(1\right)$
 ${"the quick brown fox jumped over the lazy dog"}$ (2)
 > $\mathrm{res}:-\mathrm{GetData}\left(2\right)$

 [   1..127 1-D Array    ] [ Data Type: integer[1] ] [ Storage: rectangular  ] [    Order: C_order     ]

 > $\mathrm{str}≔\mathrm{res}:-\mathrm{GetData}\left(1,\mathrm{stream}=\mathrm{true}\right):$$\mathrm{str}:-\mathrm{Type}\left(\right)$
 ${\mathrm{VARCHAR}}$ (3)
 > $\mathrm{str}:-\mathrm{Read}\left(5\right)$
 ${"the q"}$ (4)
 > $\mathrm{str}:-\mathrm{Skip}\left(5\right);$$\mathrm{str}:-\mathrm{Read}\left(5\right)$
 ${"brown"}$ (5)
 > $\mathrm{str}≔\mathrm{res}:-\mathrm{GetData}\left(2,\mathrm{stream}=\mathrm{true}\right):$$\mathrm{str}:-\mathrm{Type}\left(\right)$
 ${\mathrm{BINARY}}$ (6)
 > $\mathrm{str}:-\mathrm{Read}\left(5\right)$
 $\left[{1}{,}{2}{,}{3}{,}{4}{,}{5}\right]$ (7)
 > $\mathrm{str}:-\mathrm{Skip}\left(5\right);$$\mathrm{str}:-\mathrm{Read}\left(5\right)$
 $\left[{11}{,}{12}{,}{13}{,}{14}{,}{15}\right]$ (8)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam