2282_ko-KR
배열 만들기간단한 배열을 만들려고 합니다. a[1] = "string 1"..... a[10] = "string 10"
FOR 문으로 반복하면서 테이블에서 값을 읽어서 이 배열을 만들고 있습니다. a[1]에 대한 첫 번째 참조에서 오류가 발생합니다. (실제로j는 올바르게 초기화되고 증가합니다.
내가 도대체 뭘 잘못하고있는 겁니까? 도움을 받으려고 했지만 원하는 것을 찾지 못했습니다.
감사해요,Re: 배열 생성열 값을 가져오기 위해 For 루프를 사용할 필요가 없습니다. GET VALUES를 사용하는 것이 더 빠를 수 있습니다.
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">dt
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">=
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: rgb(0, 0, 221);">열기
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">(
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"$SAMPLE_DATA\Big
클래스.jmp"
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 녹색;">/*
열을 참조하는 두 가지 방법
표시됩니다:
style="font-size: 10pt; font-family: "Courier New"; 색상: 녹색;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 녹색;">The
첫 번째 방법은 다음과 같은 경우에 유용합니다.
열 이름에 슬래시와 같은 재미있는 문자가 있습니다.
style="font-size: 10pt; font-family: "Courier New"; 색상: 녹색;">*/
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">name_list
스타일="">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">=
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: rgb(0, 0, 221);">열
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">(
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">dt
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">,
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"이름"
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;"><<
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
값을 얻다
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">age_list
스타일="">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">=
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: rgb(0, 0, 221);">열
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">(
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">dt
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">,
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"나이"
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;"><<
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
값을 얻다
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 녹색;">/*
열이
간단한 이름은 직접 참조 */
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">sex_list
스타일="">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">=
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">:
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">성별
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;"><<
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
값을 얻다
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">height_list
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">=
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">:
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">높이
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;"><<
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
값을 얻다
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">weight_list
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">=
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">무게
style="font-size: 10pt; font-family: "Courier New"; 색상: 네이비;"><<
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
값을 얻다
style="font-size: 10pt; font-family: "Courier New"; color: navy;">;
style="font-size: 10pt; font-family: "Courier New"; 색상: 검정;">
문안 인사,
베드로Re: 배열 생성덕분에 내 문제가 해결되었습니다!Re: 배열 생성목록이 되려면 "a"가 필요할 것입니다. 코드 앞에 다음 행을 추가해 보십시오. a = {};
그런 다음 "목록", "연관 배열" 및 행렬(또는 행렬)에 대한 스크립팅 pdf 문서를 살펴보십시오.
Comments
There are no comments yet