Re: A new twist on the last problem (D3/NT)



Mike

thanks for the feedback - I thought it might come down to this as I
suspected that what I was wanting was a bit too arcane for a "standard"
synonym. Most of the synonyms I have which call up subroutines have
been to do relatively mundane things like sum up multivalues in another
file. I've had a few written for me many years back and cloned the
rest, but I'm certainly no dab hand at manipulating strings, so any
code snippets appreciated.

John


Mike Preece wrote:
I think you'll have to call a subroutine. Put a "CALL MYSUB" in line 8
and write, compile and catalog MYSUB subroutine. It will have a single
argument, in which you pass back the data to be used in the "synonym".
Look in the ref man for ACCESS. You can access each item by using
ACCESS(3) - as in ACCESS(3)<9> or ACCESS(3)<2,5> etc.

The are many examples in here - just google cdp. You can do anything
you want with a CALL from a dictionary. I'm fairly sure that, once you
have mastered this, we'll see fewer requests like this. Let's know how
you get on. Do you need help with the PickBasic code to extract the
leading alpha chars?



.