I 've put some customer data into a global variable and was hoping to use the find and get foundline functions to retrieve specific items from a "find" done on customer name. It works in a field. how do I make it work in a gVariable?
thanks, Glenn
finding a string in a global variable
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi Glenn,
you can use "offset" or "contains" (and maybe more
)!
"offset" will return 0 if your string is not in the global and a number (position of the first char of your string in the global) if the global contains your string.
...
if offset("My string",tGlobalVar) <> 0 then
## string is in global
end if
...
Best
Klaus
you can use "offset" or "contains" (and maybe more

Code: Select all
...
if tGlobalVar contains "My string" then
## string is in global
end if
...
...
if offset("My string",tGlobalVar) <> 0 then
## string is in global
end if
...
Best
Klaus
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm