0
A
回答
0
不幸的是Lotus公式中沒有這樣的函數。你想做什麼? 有可能是另一種方式來做到這一點。
如果你真的需要的字符位置,雖然你可以這樣做:
REM {
S Source string
F Character to find
R Location of character in string or 0
};
S := "My string";
F := "t";
LEN_S := @Length(S);
R := 0;
@For(I := 1; I < LEN_S; I := I + 1;
@If(@Middle(S; I; 1) = F;
@Do(R := I; I := LEN_S);
@Nothing
)
);
1
信息搜索結果:= @左(SearchString在; 「C」); indexOf:= @ If(searchResult =「」; 0; @Length(searchResult)); 的indexOf
-1
@Length(SRC) - @Length(@ReplaceSubstring(SRC; SRCH; 「」))
+0
這樣做的結果將是字符串中與搜索匹配的字符數。它不會在字符串中提供字符的位置。 – molasses 2010-10-08 02:56:34
2
你可以使用@Left或@Leftback。我認爲在這種情況下他們的工作是一樣的。
src:= {your field value to search};
char:= {your target character};
indexof:= @Length(@Left(src;char))
相關問題
- 1. * =式語言運營商在Lotus Notes
- 2. Lotus Notes日期計算中的列視圖公式的公式語言
- 3. Notes公式語言日期差異
- 4. Lotus Notes Domino API - 從公式生成值
- 5. 如何在Lotus Notes Domino中執行回滾
- 6. 在Lotus公式語言中設置新的HTTPPassword
- 7. Lotus Notes中VBA
- 8. Lotus Notes - 運行公式後自動刪除按鈕
- 9. Lotus Notes如何使用公式語言從另一個表單獲取計算值
- 10. 如何以bash語言執行命令並檢查其結果
- 11. 使用Lotus Notes中的公式在視圖中顯示唯一行
- 12. 如何使用Lotus Notes
- 13. 如何獲得從Lotus Notes
- 14. 得到兩列在使用Lotus觀點平均Notes公式
- 15. 使用Lotus Notes公式計算視圖中文檔的數量
- 16. 在Lotus Notes中的附件?
- 17. Lotus Notes @formula語言:操作順序錯誤?
- 18. tMongoDBRow「執行命令」語法
- 19. 如何在iPhone中執行命令行?
- 20. Lotus Notes Interop.Domino.dll
- 21. Lotus Notes同步
- 22. Lotus Notes遷移
- 23. Lotus Notes配置
- 24. C#和Lotus Notes
- 25. 如何使用Lotus Notes Java API訪問Lotus Notes中的聯繫人文件夾
- 26. 如何在命令行參數中使用indexOf()?
- 27. 如何從命令行在iTerm窗口中執行命令?
- 28. Lotus Notes @命令將當前電子郵件標記爲已讀?
- 29. 在Lotus Notes中以兩種方式對列進行排序
- 30. Lotus Notes中的亂碼主題行
下面還有更有效的答案。 Charles Ross給出的答案對我來說是最好的。 – andora 2018-03-09 23:00:20