¤W¤@½g¥DÃD :: ¤U¤@½g¥DÃD |
µoªí¤H |
¤º®e |
Abel
µù¥U®É¶¡: 2005-03-14 ¤å³¹: 189 ¨Ó¦Û: ³À´ä¤pÂí
²Ä 1 ¼Ó
|
µoªí©ó: ¬P´Á¤@ ¤G¤ë 27, 2006 5:30 pm ¤å³¹¥DÃD: ¨D±Ð Grid.recordsourcetype = 4¡ASelect ªº¥¨¶°¥Îªk |
|
|
¦U¦ì¤j¤j¡A§Ú·Q½Ð±Ð Grid.RecordSource ¤¤ªº ¥¨¶°¼gªk
º¥ý¤U±³oÓ¬O¥i¦æªº
c_a = [no_vh like] +['A200601%']
Select no_vh As ¾P³f³æ¸¹, cun_vh As «È¤á½s¸¹, amoc_vh As ¾P³f²bÃB From c_HVER Where &c_a Into Table TEMP1
.grd_temp1.RecordSourceType = 0
.grd_temp1.RecordSource = 'TEMP1'
¦ý¬O¦pªG§Æ±æ§ï¼g¦¨... Grid.RecordSourceType = 4
c_a = [no_vh like] +['A200601%']
.grd_temp1.RecordSourceType = 4 (SQL Statement)
.grd_temp1.RecordSource = 'SELECT no_vh As ¾P³f³æ¸¹, cun_vh As «È¤á½s¸¹, amoc_vh As ¾P³f²bÃB, '+;
'From HVER WHERE '+&c_a+' Into Cursor TEMP1'
«o·|µo¥Í¿ù»~¡A§Ú±N¤§§ï¬° +[']+&c_a+[']+ ¤]¬O¿ùªº¡A¤£ª¾¹Dn¦p¦ó¼g¤~¬O¥¿½T¡A½Ð¤j¤jµ¹¤©«ü¥¿¡A¤Q¤À·PÁ¡C |
|
¦^³»ºÝ |
|
 |
slboy
µù¥U®É¶¡: 2004-10-22 ¤å³¹: 5
²Ä 2 ¼Ó
|
µoªí©ó: ¬P´Á¤@ ¤G¤ë 27, 2006 6:53 pm ¤å³¹¥DÃD: |
|
|
试试:
.grd_temp1.RecordSource = 'SELECT no_vh As ¾P³f³æ¸¹, cun_vh As «È¤á½s¸¹, amoc_vh As ¾P³f²bÃB From HVER WHERE &c_a Into Cursor TEMP1' |
|
¦^³»ºÝ |
|
 |
bin1x
µù¥U®É¶¡: 2004-08-27 ¤å³¹: 462
²Ä 3 ¼Ó
|
µoªí©ó: ¬P´Á¤@ ¤G¤ë 27, 2006 7:39 pm ¤å³¹¥DÃD: |
|
|
«e°}¤l¦n¹³¦³¤H´£¹L§a
°O±o¥H«e¨t²Îµ{¦¡(¨º¤@¥»¦³µÛ¨©´ßªº®Ñ)ùئü¥G¦³²á¹L¥¨¶°
«á¨Ó¼gµ{¦¡®É
¤£¾å±o¬°¤°»òn¥Î¥¨¶°®É
&file..field ¤Ï¥¿´N³o»ò¥Î²Ä¤@Ó.¬O¥¨¶°µ²§ô,²Ä¤GÓ.¬O¨Ï¥ÎÄæ¦ìÅܼƮÉ
«á¨Ó¦n¹³¤~ª¾¹D&¦ü¥G¬O¥¨¶°¶}©l(©çÁ¦n¹³¥s®i¶},ºÞ¥Lªº) . ¬O¥¨¶°µ²§ô
¦pªG¦A¤£¦æ
()¸Õ¸Õ¬Ý,¤£¹LÀ³¸Ó¬O()¤£¦æ®É,¤~¥Î&©M.
¸Õ¸Õ¬Ý§a!¦n¹³¤£¤Ó¹³,ºÞ¥Lªº,·d¤£¦n¥i¥H¥Î
¦]¬°»¡©ú¤£¬O³o»ò¼gªº,´Nºâ¬O¦Û¤v§èªº§a
& VarName Specifies the name of the variable or array element to reference in the macro substitution. Do not include the M. prefix that distinguishes variables from fields. Such inclusion causes a syntax error. The macro should not exceed the maximum statement length permitted in Visual FoxPro.
A variable cannot reference itself recursively in macro substitution. For example, the following generates an error message:
STORE '&gcX' TO gcX
? &gcX
Macro substitution statements that appear in DO WHILE, FOR, and SCAN are evaluated only at the start of the loop and are not reevaluated on subsequent iterations. Any changes to the variable or array element that occur within the loop are not recognized.
.cExpression The optional period (.) delimiter and .cExpression are used to append additional characters to a macro. cExpression appended to the macro with .cExpression can also be a macro. If cExpression is a property name, include an extra period (cExpression..PropertyName). |
|
¦^³»ºÝ |
|
 |
Abel
µù¥U®É¶¡: 2005-03-14 ¤å³¹: 189 ¨Ó¦Û: ³À´ä¤pÂí
²Ä 4 ¼Ó
|
µoªí©ó: ¬P´Á¤T ¤T¤ë 01, 2006 11:31 am ¤å³¹¥DÃD: |
|
|
slboy ¤j¤jÁÂÁ±zªº´£¨Ñ¡A¸g´ú¸Õ¡A¦n¹³ÁÙ¬O·|µo¥Í¿ù»~¡K
bin1x ¤j¤j§ó·PÁ±zªº¦^ÂСA¥i¯à¬O§Ú¸ê½è·M²Â¡A¬Ý¤£ª¾«ç»òÀ´¡K
§Ú¦L¶H¤¤§Ú¥H«e¦b vfp 6 ®É¥N´¿¸g°µ¦¨¥\¹L¡A¨S·Q¤¤¶¡¤~ 4~5 ¦~¨SºN¾¨¥Í²¨¦p¦¹¡Aü ~ ¥i¯à¬O¦Ñ¤F... |
|
¦^³»ºÝ |
|
 |
Abel
µù¥U®É¶¡: 2005-03-14 ¤å³¹: 189 ¨Ó¦Û: ³À´ä¤pÂí
²Ä 5 ¼Ó
|
µoªí©ó: ¬P´Á¤T ¤T¤ë 01, 2006 12:36 pm ¤å³¹¥DÃD: |
|
|
èè§Q¥Î¦Y¤È¶ºªº®É¶¡¡A³s½u¨ì http://wiki.sunyear.com.tw
¬Ý¤F ¦¶¥Sªº¹ï ¥¨¶°ªº»¡©ú¡A¤~ª¾¹Dn &xx. ¡A³Ì«áÁÙn¤@Ó . ¥H«e³£¤£ª¾¹D¡A·PÁ ¦¶¥S |
|
¦^³»ºÝ |
|
 |
¦¶¨|¿³
µù¥U®É¶¡: 2003-08-25 ¤å³¹: 661 ¨Ó¦Û: ¥x¤¤¥«¤j¨½°Ï
²Ä 6 ¼Ó
|
|
¦^³»ºÝ |
|
 |
Abel
µù¥U®É¶¡: 2005-03-14 ¤å³¹: 189 ¨Ó¦Û: ³À´ä¤pÂí
²Ä 7 ¼Ó
|
µoªí©ó: ¬P´Á¤T ¤T¤ë 01, 2006 2:13 pm ¤å³¹¥DÃD: |
|
|
¦¨¤F¡A try ¤F N ¦¸¡A¦b§Ú¦L¶H¤¤´¿¸g°µ¹L¡A©Ò¥H§Ú¬Û«H¤@©w¥i¥Hªº¡C ¯u°ª¿³¡A¥un§ï¦¨¦p¤U«K¦¨¤F
.grd_temp1.RecordSource = [SELECT no_vh As ¾P³f³æ¸¹, cun_vh As «È¤á½s¸¹, amoc_vh As ¾P³f²bÃB, ;
From HVER WHERE &c_a. Into Cursor TEMP1]
´N¬O³o»ò²³æ~ «¢«¢ |
|
¦^³»ºÝ |
|
 |
|