I ran into an ussue when the field name was the reserved word "CLASS". When
I fully qualified the reserved word, everything works as expected.
WITH OBJECT oSender:oParent:oSQLQuery1
::oEdit1:Value := :Partnbr
::oEdit2:Value := :Revlevel
// Even within with object statement :Class creates an issue
// ::oEdit3:Value := oSender:oParent:oSQLQuery1:CLASS // Fully
Qualified works
::oEdit3:Value := :CLASS // Creates Error
::oEdit4:Value := :Status
::oEdit5:Value := :FileName
::oEdit6:Value := :Comments
::oEdit7:Value := :Sheetsize
::oEdit8:Value := :Cust_Part
::oEdit9:Value := :Cust_Rev
END
Error:
Compiling: Template.prg...
Compiling: TemplateFrm.prg...
Compiling: AboutFrm.prg...
Compiling: TemplateFrm2.prg...
Compiling: TemplateFrm3.prg...
TemplateFrm3.prg(90) Error E0020 Incomplete statement or unbalanced
delimiters
Compiling: ImageForm.prg...
Compiling: MiDocView.prg...
Linking: Template.exe...
Fatal: Unable to open file 'TEMPLATEFRM3.OBJ'
0 Warnings, 2 Errors
Thanks,
James
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Reserved Word Class In Database Field Names
- ignacio
- Site Admin
- Mensajes: 9441
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Reserved Word Class In Database Field Names
Jadams,
Surely CLASS is a xHarbour reservd word.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"JADAMS" <jadams@electro-nc.com> escribió en el mensaje
news:47ecf8da$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I ran into an ussue when the field name was the reserved word "CLASS". When
>I fully qualified the reserved word, everything works as expected.
>
> WITH OBJECT oSender:oParent:oSQLQuery1
> ::oEdit1:Value := :Partnbr
> ::oEdit2:Value := :Revlevel
> // Even within with object statement :Class creates an issue
> // ::oEdit3:Value := oSender:oParent:oSQLQuery1:CLASS // Fully
> Qualified works
> ::oEdit3:Value := :CLASS // Creates Error
> ::oEdit4:Value := :Status
> ::oEdit5:Value := :FileName
> ::oEdit6:Value := :Comments
> ::oEdit7:Value := :Sheetsize
> ::oEdit8:Value := :Cust_Part
> ::oEdit9:Value := :Cust_Rev
> END
>
> Error:
> Compiling: Template.prg...
> Compiling: TemplateFrm.prg...
> Compiling: AboutFrm.prg...
> Compiling: TemplateFrm2.prg...
> Compiling: TemplateFrm3.prg...
> TemplateFrm3.prg(90) Error E0020 Incomplete statement or unbalanced
> delimiters
> Compiling: ImageForm.prg...
> Compiling: MiDocView.prg...
> Linking: Template.exe...
> Fatal: Unable to open file 'TEMPLATEFRM3.OBJ'
> 0 Warnings, 2 Errors
>
> Thanks,
> James
>
Surely CLASS is a xHarbour reservd word.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"JADAMS" <jadams@electro-nc.com> escribió en el mensaje
news:47ecf8da$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I ran into an ussue when the field name was the reserved word "CLASS". When
>I fully qualified the reserved word, everything works as expected.
>
> WITH OBJECT oSender:oParent:oSQLQuery1
> ::oEdit1:Value := :Partnbr
> ::oEdit2:Value := :Revlevel
> // Even within with object statement :Class creates an issue
> // ::oEdit3:Value := oSender:oParent:oSQLQuery1:CLASS // Fully
> Qualified works
> ::oEdit3:Value := :CLASS // Creates Error
> ::oEdit4:Value := :Status
> ::oEdit5:Value := :FileName
> ::oEdit6:Value := :Comments
> ::oEdit7:Value := :Sheetsize
> ::oEdit8:Value := :Cust_Part
> ::oEdit9:Value := :Cust_Rev
> END
>
> Error:
> Compiling: Template.prg...
> Compiling: TemplateFrm.prg...
> Compiling: AboutFrm.prg...
> Compiling: TemplateFrm2.prg...
> Compiling: TemplateFrm3.prg...
> TemplateFrm3.prg(90) Error E0020 Incomplete statement or unbalanced
> delimiters
> Compiling: ImageForm.prg...
> Compiling: MiDocView.prg...
> Linking: Template.exe...
> Fatal: Unable to open file 'TEMPLATEFRM3.OBJ'
> 0 Warnings, 2 Errors
>
> Thanks,
> James
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Reserved Word Class In Database Field Names
Thanks Ignacio.
I thought the "With Object Block" would automatically fully qualify the
name but it appears that it doesn't.
James
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:47f0dd38$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Jadams,
>
> Surely CLASS is a xHarbour reservd word.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "JADAMS" <jadams@electro-nc.com> escribió en el mensaje
> news:47ecf8da$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>I ran into an ussue when the field name was the reserved word "CLASS".
>>When I fully qualified the reserved word, everything works as expected.
>>
>> WITH OBJECT oSender:oParent:oSQLQuery1
>> ::oEdit1:Value := :Partnbr
>> ::oEdit2:Value := :Revlevel
>> // Even within with object statement :Class creates an issue
>> // ::oEdit3:Value := oSender:oParent:oSQLQuery1:CLASS // Fully
>> Qualified works
>> ::oEdit3:Value := :CLASS // Creates Error
>> ::oEdit4:Value := :Status
>> ::oEdit5:Value := :FileName
>> ::oEdit6:Value := :Comments
>> ::oEdit7:Value := :Sheetsize
>> ::oEdit8:Value := :Cust_Part
>> ::oEdit9:Value := :Cust_Rev
>> END
>>
>> Error:
>> Compiling: Template.prg...
>> Compiling: TemplateFrm.prg...
>> Compiling: AboutFrm.prg...
>> Compiling: TemplateFrm2.prg...
>> Compiling: TemplateFrm3.prg...
>> TemplateFrm3.prg(90) Error E0020 Incomplete statement or unbalanced
>> delimiters
>> Compiling: ImageForm.prg...
>> Compiling: MiDocView.prg...
>> Linking: Template.exe...
>> Fatal: Unable to open file 'TEMPLATEFRM3.OBJ'
>> 0 Warnings, 2 Errors
>>
>> Thanks,
>> James
>>
>
>
I thought the "With Object Block" would automatically fully qualify the
name but it appears that it doesn't.
James
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:47f0dd38$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Jadams,
>
> Surely CLASS is a xHarbour reservd word.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "JADAMS" <jadams@electro-nc.com> escribió en el mensaje
> news:47ecf8da$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>I ran into an ussue when the field name was the reserved word "CLASS".
>>When I fully qualified the reserved word, everything works as expected.
>>
>> WITH OBJECT oSender:oParent:oSQLQuery1
>> ::oEdit1:Value := :Partnbr
>> ::oEdit2:Value := :Revlevel
>> // Even within with object statement :Class creates an issue
>> // ::oEdit3:Value := oSender:oParent:oSQLQuery1:CLASS // Fully
>> Qualified works
>> ::oEdit3:Value := :CLASS // Creates Error
>> ::oEdit4:Value := :Status
>> ::oEdit5:Value := :FileName
>> ::oEdit6:Value := :Comments
>> ::oEdit7:Value := :Sheetsize
>> ::oEdit8:Value := :Cust_Part
>> ::oEdit9:Value := :Cust_Rev
>> END
>>
>> Error:
>> Compiling: Template.prg...
>> Compiling: TemplateFrm.prg...
>> Compiling: AboutFrm.prg...
>> Compiling: TemplateFrm2.prg...
>> Compiling: TemplateFrm3.prg...
>> TemplateFrm3.prg(90) Error E0020 Incomplete statement or unbalanced
>> delimiters
>> Compiling: ImageForm.prg...
>> Compiling: MiDocView.prg...
>> Linking: Template.exe...
>> Fatal: Unable to open file 'TEMPLATEFRM3.OBJ'
>> 0 Warnings, 2 Errors
>>
>> Thanks,
>> James
>>
>
>