Re: Sample program using STL Container (MAP)


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Barbara Brazil on August 17, 2018 at 12:18:52:

In Reply to: Re: Sample program using STL Container (MAP) posted by Grant Foraker on August 17, 2018 at 11:51:44:

I will try to answer your questions:

1) Both the key parameter and the data parameter in stlSet may be constants, simple variables, or expressions:
stlSet(MyMap,str(Value)+Text$,Text$)
stlSet(MyMap,Text$,"My data"+Text$)
stlSet(MyMap,ProductID$+ProductDesc1$,Accum)

2) In your example, stlRead returns the data record to variable DATA$. Like a LET statement DATA$ is a simple variable. The record pointer is not advanced. You can do that with stlNext.

3) stlGet is like a traditional keyed READ. In your example DATA$ would have the record data after the stlGet. Not necessary to follow it with stlRead. If you wanted to just get the key data for the current record you'd use stlReadKey.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]