XANSYS Message: 41162 [Go back to message list] [bookmark on del.icio.us]
No rating yet Subject: Re: [APDL] *vread with mixed character/number array Author: Bob Weathers Date: 2002-08-27 10:07:00For my needs, return of just the line number would suffice. That way, I can easily skip to a line, *VREad it, and parse to suit.
I also really like 'find stringB after stringA'. I'd use it a lot. I assume that I could also 'find stringA after stringA' with the same strategy.
Bob Weathers bweathers@t... (608)787-2729
--- In xansys@y..., John Swanson wrote: > Sorry, too much information required for a GET Function. We need at > least: > Filename,Extension,Directory, String, nSkip (or nOccur). > I am inclined to use nSkip instead of nOccur because you might want to > find > the first occurrance of string B after String A. > Also, the *GET could return the Parameter as the line number, or it > could return the first 32 characters of the line, with _RETURN returning the > line number. > Is the return of the first 32 characters of the line useful, or is the > simpler > return of the line number as the *get parameter sufficient? > John Swanson > Swanson Analysis Services, Inc.
> -----Original Message----- > From: Weathers, Bob [mailto:bweathers@t...] > Sent: Monday, August 26, 2002 3:11 PM > To: 'xansys' > Subject: RE: [xansys] [APDL] *vread with mixed character/number array
> I really like JAS's thoughts about *GETting the line number that a text > string appears in. It would be handy if it were implemented as a GET > function. Maybe something along the line of
> FindLine(MyText,nOccur)
> where MyText is the string (up to 32 characters) you're looking for and > nOccur is the nth occurrence (default 1).